From: Emilia Kasper Date: Wed, 14 Oct 2015 16:32:38 +0000 (+0200) Subject: Remove EVP_CHECK_DES_KEY X-Git-Tag: OpenSSL_1_1_0-pre1~424 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6f73d28c20459034bfd4090494be9fb1a479c8af;p=oweals%2Fopenssl.git Remove EVP_CHECK_DES_KEY Thanks to the OpenBSD community for bringing this to our attention. Reviewed-by: Rich Salz --- diff --git a/CHANGES b/CHANGES index ec55dc350d..3d9c1833ff 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,8 @@ _______________ Changes between 1.0.2 and 1.1.0 [xx XXX xxxx] + *) Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled. + [Emilia Käsper] *) Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also diff --git a/crypto/evp/e_des.c b/crypto/evp/e_des.c index 0506973b14..74e87e89a2 100644 --- a/crypto/evp/e_des.c +++ b/crypto/evp/e_des.c @@ -241,12 +241,7 @@ static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, } } # endif -# ifdef EVP_CHECK_DES_KEY - if (DES_set_key_checked(deskey, dat->ks.ks) != 0) - return 0; -# else DES_set_key_unchecked(deskey, ctx->cipher_data); -# endif return 1; } diff --git a/crypto/evp/e_des3.c b/crypto/evp/e_des3.c index db36634074..c113a1701c 100644 --- a/crypto/evp/e_des3.c +++ b/crypto/evp/e_des3.c @@ -269,14 +269,8 @@ static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, } } # endif -# ifdef EVP_CHECK_DES_KEY - if (DES_set_key_checked(&deskey[0], &dat->ks1) - || DES_set_key_checked(&deskey[1], &dat->ks2)) - return 0; -# else DES_set_key_unchecked(&deskey[0], &dat->ks1); DES_set_key_unchecked(&deskey[1], &dat->ks2); -# endif memcpy(&dat->ks3, &dat->ks1, sizeof(dat->ks1)); return 1; } @@ -302,16 +296,9 @@ static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, } } # endif -# ifdef EVP_CHECK_DES_KEY - if (DES_set_key_checked(&deskey[0], &dat->ks1) - || DES_set_key_checked(&deskey[1], &dat->ks2) - || DES_set_key_checked(&deskey[2], &dat->ks3)) - return 0; -# else DES_set_key_unchecked(&deskey[0], &dat->ks1); DES_set_key_unchecked(&deskey[1], &dat->ks2); DES_set_key_unchecked(&deskey[2], &dat->ks3); -# endif return 1; }