rsa/rsa_ossl.c: cache MONT_CTX for public modulus earlier.
authorAndy Polyakov <appro@openssl.org>
Wed, 7 Nov 2018 21:07:22 +0000 (22:07 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 21 Nov 2018 18:22:19 +0000 (19:22 +0100)
commit2cc3f68cde77af23c61fbad65470602ee86f2575
treed41b2b183331011818ca6bf99bf8102f120e925b
parent2a6f57bc098cdfa6320189f2725337c7f74a052e
rsa/rsa_ossl.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>
(Merged from https://github.com/openssl/openssl/pull/7586)
crypto/rsa/rsa_ossl.c