diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-17 17:52:30 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-17 17:52:30 +0200 |
commit | a997fb414b5fabf8c4c8869a403c54eb4250149b (patch) | |
tree | 502854df31148448afcd4e8d7c82f4cc4efc0357 /openpgp/src/crypto | |
parent | d44c0c28e50b6f93888ddfb42d486bde6beb4a90 (diff) |
openpgp: Fix typo.
Diffstat (limited to 'openpgp/src/crypto')
-rw-r--r-- | openpgp/src/crypto/backend/botan/asymmetric.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/backend/cng/asymmetric.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/backend/nettle/asymmetric.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/backend/openssl/asymmetric.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/backend/rust/asymmetric.rs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/src/crypto/backend/botan/asymmetric.rs b/openpgp/src/crypto/backend/botan/asymmetric.rs index c817aafd..722e3ac5 100644 --- a/openpgp/src/crypto/backend/botan/asymmetric.rs +++ b/openpgp/src/crypto/backend/botan/asymmetric.rs @@ -458,7 +458,7 @@ impl<R> Key4<SecretParts, R> public, secret.into()) } - /// Generates a new RSA key with a public modulos of size `bits`. + /// Generates a new RSA key with a public modulus of size `bits`. pub fn generate_rsa(bits: usize) -> Result<Self> { let mut rng = RandomNumberGenerator::new_userspace()?; let secret = Privkey::create("RSA", &format!("{}", bits), &mut rng)?; diff --git a/openpgp/src/crypto/backend/cng/asymmetric.rs b/openpgp/src/crypto/backend/cng/asymmetric.rs index 38eb1905..a0655de9 100644 --- a/openpgp/src/crypto/backend/cng/asymmetric.rs +++ b/openpgp/src/crypto/backend/cng/asymmetric.rs @@ -784,7 +784,7 @@ where ) } - /// Generates a new RSA key with a public modulos of size `bits`. + /// Generates a new RSA key with a public modulus of size `bits`. pub fn generate_rsa(bits: usize) -> Result<Self> { use win_crypto_ng::asymmetric::{AsymmetricKey, Rsa}; diff --git a/openpgp/src/crypto/backend/nettle/asymmetric.rs b/openpgp/src/crypto/backend/nettle/asymmetric.rs index fd239528..1b92a01b 100644 --- a/openpgp/src/crypto/backend/nettle/asymmetric.rs +++ b/openpgp/src/crypto/backend/nettle/asymmetric.rs @@ -373,7 +373,7 @@ impl<R> Key4<SecretParts, R> }.into()) } - /// Generates a new RSA key with a public modulos of size `bits`. + /// Generates a new RSA key with a public modulus of size `bits`. pub fn generate_rsa(bits: usize) -> Result<Self> { let mut rng = Yarrow::default(); diff --git a/openpgp/src/crypto/backend/openssl/asymmetric.rs b/openpgp/src/crypto/backend/openssl/asymmetric.rs index 61a0b735..7b24a235 100644 --- a/openpgp/src/crypto/backend/openssl/asymmetric.rs +++ b/openpgp/src/crypto/backend/openssl/asymmetric.rs @@ -481,7 +481,7 @@ where ) } - /// Generates a new RSA key with a public modulos of size `bits`. + /// Generates a new RSA key with a public modulus of size `bits`. #[allow(clippy::many_single_char_names)] pub fn generate_rsa(bits: usize) -> Result<Self> { let key = Rsa::generate(bits.try_into()?)?; diff --git a/openpgp/src/crypto/backend/rust/asymmetric.rs b/openpgp/src/crypto/backend/rust/asymmetric.rs index 44163e2d..54d776f0 100644 --- a/openpgp/src/crypto/backend/rust/asymmetric.rs +++ b/openpgp/src/crypto/backend/rust/asymmetric.rs @@ -458,7 +458,7 @@ impl<R> Key4<SecretParts, R> ) } - /// Generates a new RSA key with a public modulos of size `bits`. + /// Generates a new RSA key with a public modulus of size `bits`. pub fn generate_rsa(bits: usize) -> Result<Self> { let key = RsaPrivateKey::new(&mut rsa::rand_core::OsRng, bits)?; let (p, q) = match key.primes() { |