nrfxlib API 0.1.0
|
int ocrypto_rsa2048_init_key | ( | ocrypto_rsa2048_key * | sk, |
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>
2048-bit RSA secret key setup.
[out] | sk | The initialized public key. |
n | The RSA modulus. Must be exactly 2048 bits. | |
n_len | Length of n . | |
d | The secret exponent. Must be <= 2048 bits. | |
d_len | Length of d . |
-1 | If the input length is invalid. |
0 | On success. |