nrfxlib API 2.8.99
|
int ocrypto_ecdh_p256_common_secret_final | ( | ocrypto_ecdh_p256_ctx * | ctx, |
uint8_t | r[32] ) |
#include <crypto/nrf_oberon/include/ocrypto_ecdh_p256.h>
Incremental ECDH P-256 common secret generation final step.
Common secret calculation is finalized and the context ctx
is used to generate the secret.
ctx | Context. | |
[out] | r | Generated common secret. |
0 | If sk is a valid secret key and pk is a valid public key. |
-1 | Otherwise. |