nrfxlib API
2.8.99
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 Nov 7 2024 16:00:38 for nrfxlib API by
1.12.0