Skip to content

Comments

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
dot-asm:smooth_rsa-102
Closed

rsa/rsa_ossl.c: implement variant of "Smooth CRT-RSA." [1.0.2]#6942
dot-asm wants to merge 4 commits intoopenssl:OpenSSL_1_0_2-stablefrom
dot-asm:smooth_rsa-102

Conversation

@dot-asm
Copy link
Contributor

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

#6915 backport to 1.0.2.

@dot-asm dot-asm added the branch: 1.0.2 Applies to OpenSSL_1_0_2-stable branch (EOL) label Aug 13, 2018
@mattcaswell mattcaswell added this to the Assessed milestone Aug 20, 2018
Andy Polyakov 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
@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.0.2] Aug 24, 2018
@mattcaswell
Copy link
Member

@paulidale

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)
@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

branch: 1.0.2 Applies to OpenSSL_1_0_2-stable branch (EOL)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants