nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_ecdh_p224_secret_key_check()

int ocrypto_ecdh_p224_secret_key_check ( const uint8_t  sk[28])

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

ECDH P-224 secret key check.

Parameters
skSecret key to check.
Return values
0If sk is a valid secret key.
-1Otherwise.
Remarks
To generate a valid secret key use the following code pattern:
do get_random(sk); while (ocrypto_ecdh_p224_secret_key_check(sk));
int ocrypto_ecdh_p224_secret_key_check(const uint8_t sk[28])