rsa/rsa_ossl.c: implement variant of "Smooth CRT-RSA." [1.0.2]#6942
Closed
dot-asm wants to merge 4 commits intoopenssl:OpenSSL_1_0_2-stablefrom
Closed
rsa/rsa_ossl.c: implement variant of "Smooth CRT-RSA." [1.0.2]#6942dot-asm wants to merge 4 commits intoopenssl:OpenSSL_1_0_2-stablefrom
dot-asm wants to merge 4 commits intoopenssl:OpenSSL_1_0_2-stablefrom
Conversation
added 4 commits
August 23, 2018 23:29
Add bn_mul_fixed_top, bn_from_mont_fixed_top, bn_mod_sub_fixed_top.
Switch to bn_{mul|sqr}_fixed_top in bn_mul_mont_fixed_top and remove
memset in bn_from_montgomery_word.
(cherry picked from commit fcc4ee0)
Resolved conflicts:
crypto/bn/bn_mod.c
crypto/bn_int.h
In [most common] case of p and q being of same width, it's possible to replace CRT modulo operations with Montgomery reductions. And those are even fixed-length Montgomery reductions... (cherry picked from commit 41bfd5e) Resolved conflicts: crypto/rsa/rsa_eay.c
(cherry picked from commit e02c519) Resolved conflicts: crypto/bn/bn_blind.c
(cherry picked from commit 324b956)
a4d69d0 to
f6fba45
Compare
Contributor
Author
|
Re-based and harmonized with master. |
Member
paulidale
approved these changes
Aug 28, 2018
levitte
pushed a commit
that referenced
this pull request
Aug 28, 2018
Add bn_mul_fixed_top, bn_from_mont_fixed_top, bn_mod_sub_fixed_top.
Switch to bn_{mul|sqr}_fixed_top in bn_mul_mont_fixed_top and remove
memset in bn_from_montgomery_word.
(cherry picked from commit fcc4ee0)
Resolved conflicts:
crypto/bn/bn_mod.c
crypto/bn_int.h
Reviewed-by: Paul Dale <[email protected]>
(Merged from #6942)
levitte
pushed a commit
that referenced
this pull request
Aug 28, 2018
In [most common] case of p and q being of same width, it's possible to replace CRT modulo operations with Montgomery reductions. And those are even fixed-length Montgomery reductions... (cherry picked from commit 41bfd5e) Resolved conflicts: crypto/rsa/rsa_eay.c Reviewed-by: Paul Dale <[email protected]> (Merged from #6942)
levitte
pushed a commit
that referenced
this pull request
Aug 28, 2018
(cherry picked from commit e02c519) Resolved conflicts: crypto/bn/bn_blind.c Reviewed-by: Paul Dale <[email protected]> (Merged from #6942)
levitte
pushed a commit
that referenced
this pull request
Aug 28, 2018
(cherry picked from commit 324b956) Reviewed-by: Paul Dale <[email protected]> (Merged from #6942)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#6915 backport to 1.0.2.