diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index 752f37cb3..bc0578fbb 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -15076,7 +15076,7 @@ int sp_mont_norm(sp_int* norm, sp_int* m) } if (err == MP_OKAY) { bits = sp_count_bits(m); - if (bits == m->size * SP_WORD_SIZE) { + if (bits >= norm->size * SP_WORD_SIZE) { err = MP_VAL; } }