openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_Md()

int32_t CRYPT_EAL_Md ( CRYPT_MD_AlgId  id,
const uint8_t *  in,
uint32_t  inLen,
uint8_t *  out,
uint32_t *  outLen 
)

Calculate the data digest

参数
id[IN] Algorithm ID
in[IN] Data to be digested
len[IN] Data length
out[OUT] Digest result
len[IN/OUT] The input parameter indicates the length of the buffer marked as "out", and the output parameter indicates the valid length of the obtained "out".
返回值
#CRYPT_SUCCESS.For other error codes, see crypt_errno.h.