-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge BoringSSL '13c9d5c': Always end BN_mod_exp_mont_consttime with …
…normal Montgomery reduction. The impact analysis is the same as BoringSSL's. There is further protection provided by the fact that in the RSA computation we always double-check the result against faults ("Verify the result" in `private_exponentiate`). In the other use, the result is immediately followed by a multiplication that would fully reduce the result. All the test vectors from BoringSSL were imported except the ones with moduli with bit sizes that are not a multiple of 512, since that is an enforced preresquisite in *ring*. Since *ring* doesn't use RSAZ the test vector that BoringSSL had temporarily commented out is also enabled. ``` git diff \ 13c9d5c:crypto/fipsmodule/bn/bn_tests.txt \ src/arithmetic/bigint_elem_exp_consttime_tests.txt ```
- Loading branch information
Showing
4 changed files
with
104 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.