d24cb22c55
This is a bit easier to read than BN_less_than_consttime when we must do >= or <=, about as much work to compute, and lots of code calls BN_cmp on secret data. This also, by extension, makes BN_cmp_word constant-time. BN_equal_consttime is probably a little more efficient and is perfectly readable, so leave that one around. Change-Id: Id2e07fe312f01cb6fd10a1306dcbf6397990cf13 Reviewed-on: https://boringssl-review.googlesource.com/25444 Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
asm | ||
add.c | ||
bn_test_to_fuzzer.go | ||
bn_test.cc | ||
bn_tests.txt | ||
bn.c | ||
bytes.c | ||
check_bn_tests.go | ||
cmp.c | ||
ctx.c | ||
div.c | ||
exponentiation.c | ||
gcd.c | ||
generic.c | ||
internal.h | ||
jacobi.c | ||
montgomery_inv.c | ||
montgomery.c | ||
mul.c | ||
prime.c | ||
random.c | ||
rsaz_exp.c | ||
rsaz_exp.h | ||
shift.c | ||
sqrt.c |