Function nettle::rsa::generate_keypair

source ·
pub fn generate_keypair<R: Random>(
    random: &mut R,
    modulo_size: u32
) -> Result<(PublicKey, PrivateKey)>
Expand description

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.