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

◆ ocrypto_rsa2048_init_pub_key()

int ocrypto_rsa2048_init_pub_key ( ocrypto_rsa2048_pub_key * pk,
const uint8_t * n,
size_t n_len )

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

2048-bit RSA public key setup.

Parameters
[out]pkThe initialized public key.
nThe RSA modulus. Must be exactly 2048 bits.
n_lenLength of n.
Return values
-1If the input length is invalid.
0On success.
Remarks
The public exponent is fixed at 65537.