Function nrfxlib_sys::ocrypto_rsa1024_init_pub_key
source · pub unsafe extern "C" fn ocrypto_rsa1024_init_pub_key(
pk: *mut ocrypto_rsa1024_pub_key,
n: *const u8,
n_len: usize
) -> c_int
Expand description
1024-bit RSA key setup.
This group of functions is used for 1024-bit RSA key setup. / /@{*/ / 1024-bit RSA public key setup.
pk
- The initialized public key.n
- The RSA modulus. Must be exactly 1024 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.