summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/evp_enc.c')
-rw-r--r--src/lib/libcrypto/evp/evp_enc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c
index 172d8b4019..0867070a76 100644
--- a/src/lib/libcrypto/evp/evp_enc.c
+++ b/src/lib/libcrypto/evp/evp_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_enc.c,v 1.55 2023/11/19 15:46:09 tb Exp $ */ 1/* $OpenBSD: evp_enc.c,v 1.56 2023/11/29 21:35:57 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -93,7 +93,7 @@ EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl,
93 if (cipher) { 93 if (cipher) {
94 /* Ensure a context left lying around from last time is cleared 94 /* Ensure a context left lying around from last time is cleared
95 * (the previous check attempted to avoid this if the same 95 * (the previous check attempted to avoid this if the same
96 * ENGINE and EVP_CIPHER could be used). */ 96 * EVP_CIPHER could be used). */
97 if (ctx->cipher) { 97 if (ctx->cipher) {
98 unsigned long flags = ctx->flags; 98 unsigned long flags = ctx->flags;
99 EVP_CIPHER_CTX_cleanup(ctx); 99 EVP_CIPHER_CTX_cleanup(ctx);
@@ -236,7 +236,7 @@ int
236EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, 236EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl,
237 const unsigned char *key, const unsigned char *iv) 237 const unsigned char *key, const unsigned char *iv)
238{ 238{
239 return EVP_CipherInit_ex(ctx, cipher, impl, key, iv, 1); 239 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1);
240} 240}
241 241
242int 242int
@@ -250,7 +250,7 @@ int
250EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, 250EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl,
251 const unsigned char *key, const unsigned char *iv) 251 const unsigned char *key, const unsigned char *iv)
252{ 252{
253 return EVP_CipherInit_ex(ctx, cipher, impl, key, iv, 0); 253 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 0);
254} 254}
255 255
256int 256int