openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_MdUpdate()

int32_t CRYPT_EAL_MdUpdate ( CRYPT_EAL_MdCTX ctx,
const uint8_t *  data,
uint32_t  len 
)

Continuously input the data to be digested.

参数
ctx[IN/OUT] MD context, which is created by using the CRYPT_EAL_MdNewCtx interface.
data[IN] Data to be digested.
len[IN] Data length. The maximum length of sha384 and sha512 is [0, 2^128 bits). The maximum total length of sha1, sha224, sha256, sm3, and md5 is [0, 2^64 bits). The maximum length at a time is [0, 0xffffffff].
返回值
#CRYPT_SUCCESS.For other error codes, see crypt_errno.h.