diff --git a/src/aead/chacha/tests.rs b/src/aead/chacha/tests.rs index 84e5f3834f..1cab335351 100644 --- a/src/aead/chacha/tests.rs +++ b/src/aead/chacha/tests.rs @@ -31,7 +31,7 @@ const MAX_ALIGNMENT_AND_OFFSET_SUBSET: (usize, usize) = #[test] fn chacha20_test_default() { - // Always use `MAX_OFFSET` if we hav assembly code. + // Always use `MAX_OFFSET` if we have assembly code. let max_offset = if cfg!(any( all(target_arch = "aarch64", target_endian = "little"), all(target_arch = "arm", target_endian = "little"), diff --git a/src/cpu/x86.rs b/src/cpu/x86.rs index 37b789c7c0..b596467aab 100644 --- a/src/cpu/x86.rs +++ b/src/cpu/x86.rs @@ -22,7 +22,7 @@ use core::ops::{BitAnd, Shl}; mod abi_assumptions { use core::mem::size_of; - // TOOD: Support targets that do not have SSE and SSE2 enabled, such as + // TODO: Support targets that do not have SSE and SSE2 enabled, such as // x86_64-unknown-linux-none. See // https://github.com/briansmith/ring/issues/1793#issuecomment-1793243725, // https://github.com/briansmith/ring/issues/1832, diff --git a/src/cpu/x86_64.rs b/src/cpu/x86_64.rs index b25d0867ab..a1c0a73ce3 100644 --- a/src/cpu/x86_64.rs +++ b/src/cpu/x86_64.rs @@ -22,7 +22,7 @@ use core::ops::{BitAnd, Shl}; mod abi_assumptions { use core::mem::size_of; - // TOOD: Support targets that do not have SSE and SSE2 enabled, such as + // TODO: Support targets that do not have SSE and SSE2 enabled, such as // x86_64-unknown-linux-none. See // https://github.com/briansmith/ring/issues/1793#issuecomment-1793243725, // https://github.com/briansmith/ring/issues/1832, diff --git a/src/ec/suite_b/mod.rs b/src/ec/suite_b/mod.rs index 41adcfdf0b..3cc72e0ab1 100644 --- a/src/ec/suite_b/mod.rs +++ b/src/ec/suite_b/mod.rs @@ -21,7 +21,7 @@ use crate::{arithmetic::montgomery::*, cpu, ec, error, io::der, pkcs8}; // yQ**2 = xQ**3 + axQ + b in GF(p), where the arithmetic is performed modulo // p." // -// That is, verify that (x, y) is on the curve, which is true iif: +// That is, verify that (x, y) is on the curve, which is true iff: // // y**2 == x**3 + a*x + b (mod q) // diff --git a/src/ec/suite_b/ops/mod.rs b/src/ec/suite_b/ops/mod.rs index 31120c4449..5aa6b5db05 100644 --- a/src/ec/suite_b/ops/mod.rs +++ b/src/ec/suite_b/ops/mod.rs @@ -457,7 +457,7 @@ impl PublicScalarOps { pub struct PrivateScalarOps { pub scalar_ops: &'static ScalarOps, - oneRR_mod_n: PublicScalar, // 1 * R**2 (mod n). TOOD: Use One. + oneRR_mod_n: PublicScalar, // 1 * R**2 (mod n). TODO: Use One. scalar_inv_to_mont: fn(a: Scalar, cpu: cpu::Features) -> Scalar, }