nrfxlib API
0.1.0
Loading...
Searching...
No Matches
◆
ocrypto_ecdh_p521_secret_key_check()
int ocrypto_ecdh_p521_secret_key_check
(
const uint8_t
sk
[66]
)
ECDH P-521 secret key check.
Parameters
sk
Secret key to check.
Return values
0
If
sk
is a valid secret key.
-1
Otherwise.
Remarks
To generate a valid secret key use the following code pattern:
do
get_random(sk);
while
(
ocrypto_ecdh_p521_secret_key_check
(sk));
ocrypto_ecdh_p521_secret_key_check
int ocrypto_ecdh_p521_secret_key_check(const uint8_t sk[66])
crypto
nrf_oberon
include
ocrypto_ecdh_p521.h
Generated on Thu Sep 26 2024 10:53:01 for nrfxlib API by
1.9.6