Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC: bigint: Expand use of BoringSSL exponentiation test vectors.
Prepare to merge the rest of the not-yet-merged BoringSSL changes. The recent refactoring of `PrivateExponent` lets us add a new test-only constructor that can support a wider range of exponents. Also, there's no reason to avoid test vectors with a base of zero. We do need to still reject 0 as an *exponent* and too-small moduli. Accordingly, merge in all the relevant test vectors from BoringSSL's `bn_test.txt` into `bigint_elem_exp_consttime_tests.txt` as of BoringSSL a8b1633, which is the last commit of BoringSSL that has been merged into *ring* so far. ``` git diff \ a8b1633:crypto/fipsmodule/bn/bn_tests.txt \ src/arithmetic/bigint_elem_exp_consttime_tests.txt ```
- Loading branch information