Function nrfxlib_sys::ocrypto_rsa2048_init_pub_key
source · pub unsafe extern "C" fn ocrypto_rsa2048_init_pub_key(
pk: *mut ocrypto_rsa2048_pub_key,
n: *const u8,
n_len: usize
) -> c_int
Expand description
2048-bit RSA key setup.
This group of functions is used for 2048-bit RSA key setup. / /@{*/ / 2048-bit RSA public key setup.
pk
- The initialized public key.n
- The RSA modulus. Must be exactly 2048 bits.n_len
- Length of *n
- .
Returns -1 If the input length is invalid. Returns 0 On success.
@remark The public exponent is fixed at 65537.