nrfxlib API 2.8.99
|
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)
[in] | attributes | Attributes of the key to use |
[in] | priv_key | Private key of the initiating party |
[in] | priv_key_size | Size in bytes of priv_key |
[in] | publ_key | Public key of the peer party |
[in] | publ_key_size | Size in bytes of publ_key |
[out] | output | Buffer to hold the agreed key |
[in] | output_size | Size in bytes of the output buffer |
[out] | output_length | Size in bytes of the agreed key |
[in] | alg | Algorithm |
PSA_SUCCESS | on success. Error code from psa_status_t on failure |