From a11a04e5d35048705d55344f9b3839fc0d76876f Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 6 Jul 2025 15:37:33 +0000 Subject: Move aes_ecb_encrypt_internal() prototype to aes_local.h. --- src/lib/libcrypto/aes/aes_local.h | 5 ++++- src/lib/libcrypto/evp/e_aes.c | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/aes/aes_local.h b/src/lib/libcrypto/aes/aes_local.h index f9bd363802..5052cf9e70 100644 --- a/src/lib/libcrypto/aes/aes_local.h +++ b/src/lib/libcrypto/aes/aes_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: aes_local.h,v 1.7 2025/06/27 17:26:57 jsing Exp $ */ +/* $OpenBSD: aes_local.h,v 1.8 2025/07/06 15:37:33 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. * @@ -66,6 +66,9 @@ __BEGIN_HIDDEN_DECLS void aes_ctr32_encrypt_ctr128f(const unsigned char *in, unsigned char *out, size_t blocks, const void *key, const unsigned char ivec[AES_BLOCK_SIZE]); +void aes_ecb_encrypt_internal(const unsigned char *in, unsigned char *out, + size_t len, const AES_KEY *key, int encrypt); + __END_HIDDEN_DECLS #endif /* !HEADER_AES_LOCAL_H */ diff --git a/src/lib/libcrypto/evp/e_aes.c b/src/lib/libcrypto/evp/e_aes.c index b9d673c978..1779acec66 100644 --- a/src/lib/libcrypto/evp/e_aes.c +++ b/src/lib/libcrypto/evp/e_aes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_aes.c,v 1.77 2025/06/27 17:26:57 jsing Exp $ */ +/* $OpenBSD: e_aes.c,v 1.78 2025/07/06 15:37:33 jsing Exp $ */ /* ==================================================================== * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. * @@ -103,9 +103,6 @@ typedef struct { #define MAXBITCHUNK ((size_t)1<<(sizeof(size_t)*8-4)) -void aes_ecb_encrypt_internal(const unsigned char *in, unsigned char *out, - size_t len, const AES_KEY *key, int encrypt); - #ifdef AES_XTS_ASM void AES_xts_encrypt(const char *inp, char *out, size_t len, const AES_KEY *key1, const AES_KEY *key2, const unsigned char iv[16]); -- cgit v1.2.3-55-g6feb