aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/e_ecb_bf.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-05-28 12:44:46 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-05-28 12:44:46 +0000
commit360370d9530d552078a453f7333faeab0039268f (patch)
tree8bc290cacd648726e273496e748e1f1f1eba6695 /crypto/evp/e_ecb_bf.c
parent1fab73ac856225762dae9ef738e792b5ccbd8a32 (diff)
downloadopenssl-360370d9530d552078a453f7333faeab0039268f.tar.gz
Third phase of EVP cipher overhaul.
Remove duplicated code in EVP.
Diffstat (limited to 'crypto/evp/e_ecb_bf.c')
-rw-r--r--crypto/evp/e_ecb_bf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/evp/e_ecb_bf.c b/crypto/evp/e_ecb_bf.c
index c38e56d491..b63577900d 100644
--- a/crypto/evp/e_ecb_bf.c
+++ b/crypto/evp/e_ecb_bf.c
@@ -89,8 +89,7 @@ EVP_CIPHER *EVP_bf_ecb(void)
static int bf_ecb_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
unsigned char *iv, int enc)
{
- if (key != NULL)
- BF_set_key(&(ctx->c.bf_ks),EVP_CIPHER_CTX_key_length(ctx),key);
+ BF_set_key(&(ctx->c.bf_ks),EVP_CIPHER_CTX_key_length(ctx),key);
return 1;
}