d5d24fd14e
BN_mod_mul_montgomery has a problem where the modulus is much smaller than one of the arguments. While bn_test.cc knows this and reduces the inputs before testing |BN_mod_mul_montgomery|, none of the previous test vectors actually failed without this. (Except those that passed negative vaules.) This change adds tests where M ≪ A and B. Change-Id: I53b5188ea5fb5e48d0d197718ed33c644cde8477 Reviewed-on: https://boringssl-review.googlesource.com/8890 Reviewed-by: David Benjamin <davidben@google.com> Reviewed-by: Brian Smith <brian@briansmith.org> Commit-Queue: David Benjamin <davidben@google.com> |
||
---|---|---|
.. | ||
asm | ||
add.c | ||
bn_asn1.c | ||
bn_test.cc | ||
bn_tests.txt | ||
bn.c | ||
check_bn_tests.go | ||
CMakeLists.txt | ||
cmp.c | ||
convert.c | ||
ctx.c | ||
div.c | ||
exponentiation.c | ||
gcd.c | ||
generic.c | ||
internal.h | ||
kronecker.c | ||
montgomery.c | ||
mul.c | ||
prime.c | ||
random.c | ||
rsaz_exp.c | ||
rsaz_exp.h | ||
shift.c | ||
sqrt.c |