openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_PkeySetPub()

int32_t CRYPT_EAL_PkeySetPub ( CRYPT_EAL_PkeyCtx pkey,
const CRYPT_EAL_PkeyPub key 
)

Set the public key. The caller applies for and releases memory for the public key marked as "key".

参数
pkey[OUT] Key pair structure for receiving key data
key[IN] Public key data
返回值
#CRYPT_SUCCESS.For other error codes, see crypt_errno.h.