openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_MdDupCtx()

CRYPT_EAL_MdCTX * CRYPT_EAL_MdDupCtx ( const CRYPT_EAL_MdCTX ctx)

Copy the MD context.

Note that need to call the CRYPT_EAL_MdFreeCtx interface to release the memory after the duplication is complete.

参数
ctx[IN] Source MD context
返回值
CRYPT_EAL_MdCTX,MDcontext pointer. NULL, if the operation fails.