9f05de4ebb
Simplify the code, and in particular make |BN_div|, |BN_mod|, and |BN_nnmod| insensitive to |BN_FLG_CONSTTIME|. This improves the effectiveness of testing by reducing the number of branches that are likely to go untested or less tested. There is no performance-sensitive code that uses BN_div but doesn't already use BN_FLG_CONSTTIME except RSA signature verification and EC_GROUP creation. RSA signature verification, ECDH, and ECDSA performance aren't significantly different with this change. Change-Id: Ie34c4ce925b939150529400cc60e1f414c7676cd Reviewed-on: https://boringssl-review.googlesource.com/9105 Reviewed-by: David Benjamin <davidben@google.com> 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_inv.c | ||
montgomery.c | ||
mul.c | ||
prime.c | ||
random.c | ||
rsaz_exp.c | ||
rsaz_exp.h | ||
shift.c | ||
sqrt.c |