openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_PkeyGetPub()

int32_t CRYPT_EAL_PkeyGetPub ( const CRYPT_EAL_PkeyCtx pkey,
CRYPT_EAL_PkeyPub key 
)

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

Parameters
pkey[IN] Key session
key[OUT] Public key data
Return values
#CRYPT_SUCCESS.For other error codes, see crypt_errno.h.