nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ cc3xx_key_agreement()

psa_status_t cc3xx_key_agreement ( const psa_key_attributes_t * attributes,
const uint8_t * priv_key,
size_t priv_key_size,
const uint8_t * publ_key,
size_t publ_key_size,
uint8_t * output,
size_t output_size,
size_t * output_length,
psa_algorithm_t alg )

Performs a raw key agreement (i.e. Elliptic Curve Diffie Hellman)

Parameters
[in]attributesAttributes of the key to use
[in]priv_keyPrivate key of the initiating party
[in]priv_key_sizeSize in bytes of priv_key
[in]publ_keyPublic key of the peer party
[in]publ_key_sizeSize in bytes of publ_key
[out]outputBuffer to hold the agreed key
[in]output_sizeSize in bytes of the output buffer
[out]output_lengthSize in bytes of the agreed key
[in]algAlgorithm
Return values
PSA_SUCCESSon success. Error code from psa_status_t on failure