Function nrfxlib_sys::ocrypto_rsa2048_init_key
source · pub unsafe extern "C" fn ocrypto_rsa2048_init_key(
sk: *mut ocrypto_rsa2048_key,
n: *const u8,
n_len: usize,
d: *const u8,
d_len: usize
) -> c_int
Expand description
2048-bit RSA secret key setup.
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
- .
Returns -1 If the input length is invalid. Returns 0 On success.