The unified diff between revisions [0dc5b2d6..] and [b14c94b9..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'bn_mp_mod_2d.c'
#
#
# patch "bn_mp_mod_2d.c"
# from [6860d01c3277c6edd0a7ca03dd22248983306b8e]
# to [e0e5f0ab899aae9477bf97785f85320ad0b78865]
#
============================================================
--- bn_mp_mod_2d.c 6860d01c3277c6edd0a7ca03dd22248983306b8e
+++ bn_mp_mod_2d.c e0e5f0ab899aae9477bf97785f85320ad0b78865
@@ -28,7 +28,7 @@ mp_mod_2d (mp_int * a, int b, mp_int * c
}
/* if the modulus is larger than the value than return */
- if (b > (int) (a->used * DIGIT_BIT)) {
+ if (b >= (int) (a->used * DIGIT_BIT)) {
res = mp_copy (a, c);
return res;
}