openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_MdNewCtx()

CRYPT_EAL_MdCTX * CRYPT_EAL_MdNewCtx ( CRYPT_MD_AlgId  id)

Create the MD context.

After the calculation is complete, call the CRYPT_EAL_MdFreeCtx interface to release the memory.

参数
id[IN] Algorithm ID
返回值
CRYPT_EAL_MdCTX,MDcontext pointer. NULL, if the operation fails.