![]() |
nrfxlib API 3.3.99
|
| int ocrypto_rsa_init_pub_key | ( | ocrypto_rsa_pub_key * | key, |
| uint32_t * | key_mem, | ||
| const uint8_t * | n, | ||
| size_t | n_len, | ||
| uint32_t | e ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_primitives.h>
RSA public key setup.
| [out] | key | The initialized public key. |
| [out] | key_mem | Key memory. Length OCRYPTO_RSA_PUB_KEY_SIZE(bits). Must have same lifetime as key. |
| n | The RSA modulus, unsigned big-endian. | |
| n_len | Length of n. | |
| e | Public exponent. |
| -1 | If the input length is invalid. |
| 0 | On success. |