summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes
diff options
context:
space:
mode:
authorjsing <>2025-07-22 09:29:31 +0000
committerjsing <>2025-07-22 09:29:31 +0000
commitbac3e025d0e76adcdafc8b26a67bf5a0a4abbed6 (patch)
tree651b72b7850bc9998617d3adacbd7b1f2af7af21 /src/lib/libcrypto/aes
parentcbc4928ebdbd9c244a1c0e3c2e90497a0d246b38 (diff)
downloadopenbsd-bac3e025d0e76adcdafc8b26a67bf5a0a4abbed6.tar.gz
openbsd-bac3e025d0e76adcdafc8b26a67bf5a0a4abbed6.tar.bz2
openbsd-bac3e025d0e76adcdafc8b26a67bf5a0a4abbed6.zip
Remove remaining block128_f casts from EVP AES.
Use aes_encrypt_block128() instead of AES_encrypt(), avoiding risky casts.
Diffstat (limited to 'src/lib/libcrypto/aes')
-rw-r--r--src/lib/libcrypto/aes/aes_local.h5
1 files changed, 4 insertions, 1 deletions
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 @@
1/* $OpenBSD: aes_local.h,v 1.10 2025/07/21 10:24:23 jsing Exp $ */ 1/* $OpenBSD: aes_local.h,v 1.11 2025/07/22 09:29:31 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -63,6 +63,9 @@ __BEGIN_HIDDEN_DECLS
63/* This controls loop-unrolling in aes_core.c */ 63/* This controls loop-unrolling in aes_core.c */
64#undef FULL_UNROLL 64#undef FULL_UNROLL
65 65
66void aes_encrypt_block128(const unsigned char *in, unsigned char *out,
67 const void *key);
68
66void aes_ctr32_encrypt_ctr128f(const unsigned char *in, unsigned char *out, 69void aes_ctr32_encrypt_ctr128f(const unsigned char *in, unsigned char *out,
67 size_t blocks, const void *key, const unsigned char ivec[AES_BLOCK_SIZE]); 70 size_t blocks, const void *key, const unsigned char ivec[AES_BLOCK_SIZE]);
68 71