diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-05-28 12:44:46 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-05-28 12:44:46 +0000 |
commit | 360370d9530d552078a453f7333faeab0039268f (patch) | |
tree | 8bc290cacd648726e273496e748e1f1f1eba6695 /crypto/evp/e_rc4.c | |
parent | 1fab73ac856225762dae9ef738e792b5ccbd8a32 (diff) |
Third phase of EVP cipher overhaul.
Remove duplicated code in EVP.
Diffstat (limited to 'crypto/evp/e_rc4.c')
-rw-r--r-- | crypto/evp/e_rc4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/evp/e_rc4.c b/crypto/evp/e_rc4.c index bc108f4356..42839aef6b 100644 --- a/crypto/evp/e_rc4.c +++ b/crypto/evp/e_rc4.c @@ -110,8 +110,7 @@ EVP_CIPHER *EVP_rc4_40(void) static int rc4_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key, unsigned char *iv, int enc) { - if (key != NULL) - memcpy(&(ctx->c.rc4.key[0]),key,EVP_CIPHER_CTX_key_length(ctx)); + memcpy(&(ctx->c.rc4.key[0]),key,EVP_CIPHER_CTX_key_length(ctx)); RC4_set_key(&(ctx->c.rc4.ks),EVP_CIPHER_CTX_key_length(ctx), ctx->c.rc4.key); return 1; |