![]() |
nrfxlib API 3.3.99
|
| 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)
| [in] | curve | Curve family |
| [in] | key_bits | Key size in bits |
| [in] | priv_key | Priv. key |
| [in] | priv_key_size | Priv. key size |
| [in] | publ_key | Publ. key |
| [in] | publ_key_size | Publ. key size |
| [out] | secret | Shared secret value |
| [out] | secret_size | Shared secret value size |
| [out] | secret_length | The actual size of the shared secret value |
| PSA_SUCCESS | |
| PSA_ERROR_NOT_SUPPORTED | |
| PSA_ERROR_INVALID_ARGUMENT |