nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_rsa1024_init_key()

int ocrypto_rsa1024_init_key ( ocrypto_rsa1024_key * pk,
const uint8_t * n,
size_t n_len,
const uint8_t * d,
size_t d_len )

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

1024-bit RSA secret key setup.

Parameters
[out]pkThe initialized public key.
nThe RSA modulus. Must be exactly 1024 bits.
n_lenLength of n.
dThe secret exponent. Must be <= 1024 bits.
d_lenLength of d.
Return values
-1If the input length is invalid.
0On success.