[][src]Function indy_crypto::utils::rsa::generate_rsa_modulus

pub fn generate_rsa_modulus(
    size: usize,
    ctx: &mut BigNumberContext
) -> IndyCryptoResult<(BigNumber, BigNumber, BigNumber)>

Generate an RSA modulus of a given size

Arguments

  • size - size in bits of the the RSA modulus
  • ctx - big number context

Result

Return the RSA modulus and the factors