boringssl/crypto/bn
Brian Smith 286fbf2ce0 Add tests for |BN_mod_inverse| with modulus 1.
Zero is only a valid input to or output of |BN_mod_inverse| when the
modulus is one. |BN_MONT_CTX_set| actually depends on this, so test
that this works.

Change-Id: Ic18f1fe786f668394951d4309020c6ead95e5e28
Reviewed-on: https://boringssl-review.googlesource.com/8922
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2016-07-28 18:07:03 +00:00
..
asm Switch perlasm calling convention. 2016-06-27 21:59:26 +00:00
add.c
bn_asn1.c
bn_test.cc Add tests for |BN_mod_inverse| with modulus 1. 2016-07-28 18:07:03 +00:00
bn_tests.txt Add tests for |BN_mod_inverse| with modulus 1. 2016-07-28 18:07:03 +00:00
bn.c
check_bn_tests.go Add tests for |BN_mod_inverse| with modulus 1. 2016-07-28 18:07:03 +00:00
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 Refactor BN_rand_range to reduce code duplication. 2016-07-27 14:20:16 +00:00
rsaz_exp.c
rsaz_exp.h
shift.c
sqrt.c Document that BN_mod_sqrt assumes p is a prime. 2016-07-06 23:15:41 +00:00