summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/evp_cipher.c')
-rw-r--r--src/lib/libcrypto/evp/evp_cipher.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_cipher.c b/src/lib/libcrypto/evp/evp_cipher.c
index abdc33eace..94eb42a807 100644
--- a/src/lib/libcrypto/evp/evp_cipher.c
+++ b/src/lib/libcrypto/evp/evp_cipher.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_cipher.c,v 1.17 2024/01/30 17:41:01 tb Exp $ */ 1/* $OpenBSD: evp_cipher.c,v 1.18 2024/02/18 15:41:50 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 *
@@ -618,6 +618,12 @@ EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx)
618 memset(ctx, 0, sizeof(EVP_CIPHER_CTX)); 618 memset(ctx, 0, sizeof(EVP_CIPHER_CTX));
619} 619}
620 620
621void
622EVP_CIPHER_CTX_legacy_clear(EVP_CIPHER_CTX *ctx)
623{
624 memset(ctx, 0, sizeof(*ctx));
625}
626
621int 627int
622EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) 628EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx)
623{ 629{