From: Nikos Mavrogiannopoulos Date: Mon, 20 Jan 2014 14:28:07 +0000 (+0100) Subject: no point to fail on 3DES weak keys. X-Git-Tag: gnutls_3_3_0pre0~305 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b47e05884ee0099ad01cf2b67f42ebe6ad446ab;p=thirdparty%2Fgnutls.git no point to fail on 3DES weak keys. --- diff --git a/lib/nettle/cipher.c b/lib/nettle/cipher.c index 1a90b309d1..1bc164960b 100644 --- a/lib/nettle/cipher.c +++ b/lib/nettle/cipher.c @@ -324,10 +324,8 @@ wrap_nettle_cipher_setkey(void *_ctx, const void *key, size_t keysize) des_fix_parity(keysize, des_key, key); - /* this fails on weak keys */ if (des3_set_key(ctx->ctx_ptr, des_key) != 1) { gnutls_assert(); - return GNUTLS_E_INTERNAL_ERROR; } zeroize_temp_key(des_key, sizeof(des_key));