Use des_set_key_unchecked, not des_set_key.
authorBodo Möller <bodo@openssl.org>
Fri, 3 Dec 1999 20:26:20 +0000 (20:26 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 3 Dec 1999 20:26:20 +0000 (20:26 +0000)
crypto/evp/e_cbc_d.c

index 9203f3f..5b4e5b8 100644 (file)
@@ -93,7 +93,7 @@ static void des_cbc_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
                memcpy(&(ctx->oiv[0]),iv,8);
        memcpy(&(ctx->iv[0]),&(ctx->oiv[0]),8);
        if (deskey != NULL)
-               des_set_key(deskey,ctx->c.des_ks);
+               des_set_key_unchecked(deskey,ctx->c.des_ks);
        }
 
 static void des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,