![]() |
nrfxlib API 3.3.99
|
| int ocrypto_ecdh_p521_public_key | ( | uint8_t | pk[132], |
| const uint8_t | sk[66] ) |
#include <crypto/nrf_oberon/include/ocrypto_ecdh_p521.h>
ECDH P-521 public key generation.
Given a secret key sk the corresponding public key is computed and put into pk.
| [out] | pk | Generated public key. |
| sk | Secret key. Must be pre-filled with random data. |
| 0 | If sk is a valid secret key. |
| -1 | Otherwise. |
pk may be same as sk.