From cdbfe79f9d599545c54aadbd32a8c14492fbbdcc Mon Sep 17 00:00:00 2001 From: sragss Date: Wed, 7 Feb 2024 12:09:17 -0800 Subject: [PATCH] update comment to include WORD_SIZE --- src/derive/field.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/derive/field.rs b/src/derive/field.rs index 756b8248..027753d9 100644 --- a/src/derive/field.rs +++ b/src/derive/field.rs @@ -437,7 +437,7 @@ macro_rules! field_arithmetic { // in Algorithm 2 of EdMSM: https://eprint.iacr.org/2022/1400.pdf // // Cannot use the fast version (algorithm 2) if - // modulus_high_word >= (D-1) / 2 - 1 = (2^64-1)/2 - 1. + // modulus_high_word >= (WORD_SIZE - 1) / 2 - 1 = (2^64 - 1)/2 - 1 if $modulus.0[3] <= (u64::MAX / 2) - 1 { const N: usize = 4;