Implement fixed-window exponentiation to mitigate hyper-threading
authorBodo Möller <bodo@openssl.org>
Mon, 16 May 2005 01:26:08 +0000 (01:26 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 16 May 2005 01:26:08 +0000 (01:26 +0000)
commitecb1445ce2df51e5310bb58c67c57f7f83ed6a52
tree274aecb3a4d46fa524b66b098e059aabce5292af
parent64c32bf9ebeaeefe595eb49da05947fc85cc64a6
Implement fixed-window exponentiation to mitigate hyper-threading
timing attacks.

BN_FLG_EXP_CONSTTIME requests this algorithm, and this done by default for
RSA/DSA/DH private key computations unless
RSA_FLAG_NO_EXP_CONSTTIME/DSA_FLAG_NO_EXP_CONSTTIME/
DH_FLAG_NO_EXP_CONSTTIME is set.

Submitted by: Matthew D Wood
Reviewed by: Bodo Moeller
20 files changed:
CHANGES
apps/speed.c
crypto/bn/bn.h
crypto/bn/bn_err.c
crypto/bn/bn_exp.c
crypto/bn/bn_lcl.h
crypto/bn/bntest.c
crypto/bn/expspeed.c
crypto/bn/exptest.c
crypto/dh/dh.h
crypto/dh/dh_key.c
crypto/dh/dhtest.c
crypto/dsa/dsa.h
crypto/dsa/dsa_key.c
crypto/dsa/dsa_ossl.c
crypto/dsa/dsatest.c
crypto/rsa/rsa.h
crypto/rsa/rsa_eay.c
crypto/rsa/rsa_test.c
util/libeay.num