openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_GetEcdhEncodedPubKeyCallback

typedef int32_t(* CRYPT_GetEcdhEncodedPubKeyCallback) (HITLS_CRYPT_Key *key, uint8_t *pubKeyBuf, uint32_t bufLen, uint32_t *pubKeyLen)

ECDH: Extract the public key data.

Parameters
key[IN] Key handle
pubKeyBuf[OUT] Public key data
bufLen[IN] Buffer length
pubKeyLen[OUT] Public key data length
Return values
0indicates success. Other values indicate failure.