Function nettle::rsa::generate_keypair [−][src]
pub fn generate_keypair<R: Random>(
random: &mut R,
modulo_size: u32
) -> Result<(PublicKey, PrivateKey)>
Generates a fresh RSA key pair usable for signing and encryption. The public modulo n
will be
modulo_size
bits large. The public exponent is fixed to 0x10001
.