From bac3e025d0e76adcdafc8b26a67bf5a0a4abbed6 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 22 Jul 2025 09:29:31 +0000 Subject: Remove remaining block128_f casts from EVP AES. Use aes_encrypt_block128() instead of AES_encrypt(), avoiding risky casts. --- src/lib/libcrypto/aes/aes_local.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/aes') diff --git a/src/lib/libcrypto/aes/aes_local.h b/src/lib/libcrypto/aes/aes_local.h index 539373ea06..a265eaac1d 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.10 2025/07/21 10:24:23 jsing Exp $ */ +/* $OpenBSD: aes_local.h,v 1.11 2025/07/22 09:29:31 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. * @@ -63,6 +63,9 @@ __BEGIN_HIDDEN_DECLS /* This controls loop-unrolling in aes_core.c */ #undef FULL_UNROLL +void aes_encrypt_block128(const unsigned char *in, unsigned char *out, + const void *key); + 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]); -- cgit v1.2.3-55-g6feb