Remove flags for disabling constant-time operations.
authorbcook <bcook@openbsd.org>
Thu, 30 Jun 2016 02:02:06 +0000 (02:02 +0000)
committerbcook <bcook@openbsd.org>
Thu, 30 Jun 2016 02:02:06 +0000 (02:02 +0000)
commit1b2bbd6a2be0d8567d09a347b008777f6f415bc7
treef898e27b29c52ec722c83757f2cab72f231455d8
parent10998c004735e130c8915523af528d9b63c36f2b
Remove flags for disabling constant-time operations.

This removes support for DSA_FLAG_NO_EXP_CONSTTIME, DH_FLAG_NO_EXP_CONSTTIME,
and RSA_FLAG_NO_CONSTTIME flags, making all of these operations unconditionally
constant-time.

Based on the original patch by César Pereid.  ok beck@
18 files changed:
lib/libcrypto/dh/dh.h
lib/libcrypto/dh/dh_key.c
lib/libcrypto/dsa/dsa.h
lib/libcrypto/dsa/dsa_key.c
lib/libcrypto/rsa/rsa.h
lib/libcrypto/rsa/rsa_crpt.c
lib/libcrypto/rsa/rsa_eay.c
lib/libcrypto/rsa/rsa_gen.c
lib/libssl/src/crypto/dh/dh.h
lib/libssl/src/crypto/dh/dh_key.c
lib/libssl/src/crypto/dsa/dsa.h
lib/libssl/src/crypto/dsa/dsa_key.c
lib/libssl/src/crypto/rsa/rsa.h
lib/libssl/src/crypto/rsa/rsa_crpt.c
lib/libssl/src/crypto/rsa/rsa_eay.c
lib/libssl/src/crypto/rsa/rsa_gen.c
regress/lib/libcrypto/dh/dhtest.c
regress/lib/libcrypto/dsa/dsatest.c