From 1bf2af4ae9f9d95caab5c25ecc673a029ff9cbe6 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 19 Jul 2025 16:14:12 +0200 Subject: [PATCH 1/3] Update add.rs --- src/modular/boxed_monty_form/add.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modular/boxed_monty_form/add.rs b/src/modular/boxed_monty_form/add.rs index 7f9e583da..dac0a7355 100644 --- a/src/modular/boxed_monty_form/add.rs +++ b/src/modular/boxed_monty_form/add.rs @@ -1,4 +1,4 @@ -//! Additions between boxed Montgoemery form integers. +//! Additions between boxed Montgomery form integers. use super::BoxedMontyForm; use core::ops::{Add, AddAssign}; From 5f6887179f26f278f84aa9330931379a69cec8e5 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 19 Jul 2025 16:14:51 +0200 Subject: [PATCH 2/3] Update mul.rs --- src/modular/boxed_monty_form/mul.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modular/boxed_monty_form/mul.rs b/src/modular/boxed_monty_form/mul.rs index 6501ddb7d..2100aeea0 100644 --- a/src/modular/boxed_monty_form/mul.rs +++ b/src/modular/boxed_monty_form/mul.rs @@ -367,7 +367,7 @@ pub(crate) const fn almost_montgomery_mul_by_one(z: &mut [Limb], x: &[Limb], m: conditional_sub(z, m, overflow); } -/// Calcaultes `z += x * y` and returns the carry. +/// Calculates `z += x * y` and returns the carry. #[inline] const fn add_mul_carry(z: &mut [Limb], x: &[Limb], y: Limb) -> Limb { let n = z.len(); @@ -384,7 +384,7 @@ const fn add_mul_carry(z: &mut [Limb], x: &[Limb], y: Limb) -> Limb { c } -/// Calcaultes `z = (z + x * y) / 2^W` and returns the carry (of the `z + x * y`). +/// Calculates `z = (z + x * y) / 2^W` and returns the carry (of the `z + x * y`). #[inline] const fn add_mul_carry_and_shift(z: &mut [Limb], x: &[Limb], y: Limb) -> Limb { let n = z.len(); From d7541767f3d0358afa0a2ba5d61d12c51fcecbe9 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 19 Jul 2025 16:17:43 +0200 Subject: [PATCH 3/3] Update invert_mod.rs --- src/uint/boxed/invert_mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uint/boxed/invert_mod.rs b/src/uint/boxed/invert_mod.rs index d97c3e293..c5c123fda 100644 --- a/src/uint/boxed/invert_mod.rs +++ b/src/uint/boxed/invert_mod.rs @@ -138,7 +138,7 @@ impl BoxedUint { (x, is_some) } - /// Computes the multiplicaitve inverse of `self` mod `modulus` + /// Computes the multiplicative inverse of `self` mod `modulus` /// /// `self` and `modulus` must have the same number of limbs, or the function will panic /// @@ -148,7 +148,7 @@ impl BoxedUint { self.invert_mod(modulus) } - /// Computes the multiplicaitve inverse of `self` mod `modulus` + /// Computes the multiplicative inverse of `self` mod `modulus` /// /// `self` and `modulus` must have the same number of limbs, or the function will panic ///