bn/bn_exp.c: constant-time MOD_EXP_CTIME_COPY_FROM_PREBUF.
authorAndy Polyakov <appro@openssl.org>
Mon, 25 Jan 2016 19:38:38 +0000 (20:38 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 1 Mar 2016 11:20:41 +0000 (11:20 +0000)
commit708dc2f1291e104fe4eef810bb8ffc1fae5b19c1
tree8aa74f510bb8ca61a91cb1f8dccbbcc7e4547ab2
parentbc38a7d2d3c6082163c50ddf99464736110f2000
bn/bn_exp.c: constant-time MOD_EXP_CTIME_COPY_FROM_PREBUF.

Performance penalty varies from platform to platform, and even
key length. For rsa2048 sign it was observed to reach almost 10%.

CVE-2016-0702

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from master)

Resolved conflicts:
crypto/bn/bn_exp.c
crypto/bn/bn_exp.c