378cca8016
Historically, OpenSSL's modular exponentiation functions tolerated negative moduli by ignoring the sign bit. The special case for a modulus of 1 should do the same. That said, this is ridiculous and the only reason I'm importing this is BN_abs_is_word(1) is marginally more efficient than BN_is_one() and we haven't gotten around to enforcing positive moduli yet. Thanks to Guido Vranken and OSSFuzz for finding this issue and reporting to OpenSSL. (Imported from upstream's 235119f015e46a74040b78b10fd6e954f7f07774.) Change-Id: I526889dfbe2356753aa1e6ecfd3aa3dc3a8cd2b8 Reviewed-on: https://boringssl-review.googlesource.com/31085 Commit-Queue: Adam Langley <agl@google.com> Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
aes | ||
bn | ||
cipher | ||
des | ||
digest | ||
ec | ||
ecdh | ||
ecdsa | ||
hmac | ||
md4 | ||
md5 | ||
modes | ||
policydocs | ||
rand | ||
rsa | ||
self_check | ||
sha | ||
tls | ||
bcm.c | ||
CMakeLists.txt | ||
delocate.h | ||
FIPS.md | ||
intcheck1.png | ||
intcheck2.png | ||
intcheck3.png | ||
is_fips.c |