nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ cc3xx_ecdh_calc_secret_wrst()

psa_status_t cc3xx_ecdh_calc_secret_wrst ( psa_ecc_family_t curve,
psa_key_bits_t key_bits,
const uint8_t * priv_key,
size_t priv_key_size,
const uint8_t * publ_key,
size_t publ_key_size,
uint8_t * secret,
size_t secret_size,
size_t * secret_length )

Calculate a shared secret value (Short Weierstrass)

Parameters
[in]curveCurve family
[in]key_bitsKey size in bits
[in]priv_keyPriv. key
[in]priv_key_sizePriv. key size
[in]publ_keyPubl. key
[in]publ_key_sizePubl. key size
[out]secretShared secret value
[out]secret_sizeShared secret value size
[out]secret_lengthThe actual size of the shared secret value
Return values
PSA_SUCCESS
PSA_ERROR_NOT_SUPPORTED
PSA_ERROR_INVALID_ARGUMENT