Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsa/rsa_ossl.c: implement variant of "Smooth CRT-RSA." [1.1.0] #6940

Closed
wants to merge 4 commits into from

Conversation

dot-asm
Copy link
Contributor

@dot-asm dot-asm commented Aug 13, 2018

#6915 backport to 1.1.0.

@dot-asm dot-asm added the 1.1.0 label Aug 13, 2018
@mattcaswell mattcaswell added this to the Assessed milestone Aug 20, 2018
Andy Polyakov added 4 commits August 23, 2018 22:52
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)
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_ossl.c
(cherry picked from commit e02c519)

Resolved conflicts:
	crypto/bn/bn_blind.c
@dot-asm
Copy link
Contributor Author

dot-asm commented Aug 23, 2018

Re-based and harmonized with master.

@levitte levitte changed the title rsa/rsa_ossl.c: implement variant of "Smooth CRT-RSA." rsa/rsa_ossl.c: implement variant of "Smooth CRT-RSA." [1.1.0] Aug 24, 2018
@dot-asm
Copy link
Contributor Author

dot-asm commented Aug 25, 2018

Which ping was it? Apparently there is magic one for this matter... P-i-i-i-i-i-i-n-g?

@dot-asm
Copy link
Contributor Author

dot-asm commented Aug 26, 2018

Too little i's? All right, copy-n-pasting for #6915: "P-i-i-i-i-i-i-i-i-i-i-n-g then?"

@mattcaswell
Copy link
Member

@paulidale care to review this one too?

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)

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from #6940)
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_ossl.c

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from #6940)
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 <paul.dale@oracle.com>
(Merged from #6940)
levitte pushed a commit that referenced this pull request Aug 28, 2018
(cherry picked from commit 324b956)

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from #6940)
@dot-asm dot-asm closed this Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants