chore: fix some typos (#196)

This commit is contained in:
Dirk Stolle 2022-10-06 01:52:57 +02:00 committed by GitHub
parent ba0539e223
commit 7caba62e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ pub fn generate_multi_prime_key_with_exp<R: RngCore + CryptoRng>(
let mut pi = prime_limit / (prime_limit.ln() - 1f64);
// Generated primes start with 0b11, so we can only use a quarter of them.
pi /= 4f64;
// Use a factor of two to ensure taht key generation terminates in a
// Use a factor of two to ensure that key generation terminates in a
// reasonable amount of time.
pi /= 2f64;

View File

@ -289,7 +289,7 @@ fn decrypt_inner<R: RngCore + CryptoRng, SK: PrivateKey>(
Ok((valid.unwrap_u8(), em, index))
}
/// Fills the provided slice with random values, which are guranteed
/// Fills the provided slice with random values, which are guaranteed
/// to not be zero.
#[inline]
fn non_zero_random_bytes<R: RngCore + CryptoRng>(rng: &mut R, data: &mut [u8]) {