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

◆ ocrypto_ecdh_p256k1_public_key()

int ocrypto_ecdh_p256k1_public_key ( uint8_t r[64],
const uint8_t sk[32] )

#include <crypto/nrf_oberon/include/ocrypto_ecdh_p256k1.h>

ECDH secp256k1 public key generation r = n * p.

Given a secret key sk the corresponding public key is computed and put into r.

Parameters
[out]rGenerated public key.
skSecret key. Must be pre-filled with random data.
Return values
0If sk is a valid secret key.
-1Otherwise.
Remarks
r may be same as sk.