]> granicus.if.org Git - openssl/commit
rsa/rsa_eay.c: cache MONT_CTX for public modulus earlier.
authorAndy Polyakov <appro@openssl.org>
Wed, 7 Nov 2018 21:07:22 +0000 (22:07 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Fri, 23 Nov 2018 12:05:16 +0000 (13:05 +0100)
commit23bfb5b556a4e534fd61fb30719851d4b7b1fc82
tree133d1ed9f375b73bcd408ca634716d505dffedda
parent8bfde2578ce28f2f24bc5d53c374b14290436c0b
rsa/rsa_eay.c: cache MONT_CTX for public modulus earlier.

Blinding is performed more efficiently and securely if MONT_CTX for public
modulus is available by the time blinding parameter are instantiated. So
make sure it's the case.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(manually cherry picked from commit 2cc3f68cde77af23c61fbad65470602ee86f2575)

(Merged from https://github.com/openssl/openssl/pull/7586)
crypto/rsa/rsa_eay.c