对输入数据产生md5摘要数据。

参数
[in] hcontexthandle
一个已经成功打开的设备的句柄。
[in] puchin 需要进行md5hmac运算的数据。
[in] ulinlen
输入数据的长度。
[out] puchout
运算后输出的数据。
[out] puloutlen
输出的数据长度。
[in] ulflag
保留,为0。
要求
利用esfp_openfile 打开一个md5hmac文件。
返回值
esf_success:成功
esf_rv_parameter_error:参数错误,函数调用的参数可能不符合要求
esf_rv_not_find_file_error:文件或目录未找到
其它:见“api返回码说明”。
示例代码
esf_handle hcontexthandle = null;
esf_rv irv;
unsigned long ullen = 0;
unsigned char uchbuf[400];
memcpy(uchbuf, "hi there", sizeof("hi there"));
irv = esfp_md5hmac(hcontexthandle, uchbuf, 8, uchbuf, &ullen, 0);
printf("\nhmac结果为:\n");
for(i=0; i[16; i++)
{
printf("%x ", uchbuf[i]);
}
return irv;
esfp_createfile, esfp_encrypt