#include <crypto/nrf_oberon/include/ocrypto_rsa_key.h>
2048-bit RSA secret key setup with CRT coefficients.
- Parameters
-
[out] | sk | The initialized secret key. |
| p | The 1. RSA prime. Must be exactly 1024 bits. |
| p_len | Length of p . |
| q | The 2. RSA prime. Must be exactly 1024 bits. |
| q_len | Length of q . |
| dp | The 1. CRT exponent. dp = d mod (p-1). |
| dp_len | Length of dp . |
| dq | The 2. CRT exponent. dq = d mod (q-1). |
| dq_len | Length of dq . |
| qinv | The CRT coefficient. qinv = 1/q mod p. |
| qi_len | Length of qinv . |
- Return values
-
-1 | If the input length is invalid. |
0 | On success. |