From f0234f5a33ecf3b2784f3e73bdf1e937abe56599 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 13 Jul 2025 06:01:33 +0000 Subject: Simplify AES-XTS implementation and remove AES-NI specific code from EVP. Provide aes_xts_encrypt_internal() and call that from aes_xts_cipher(). Have amd64 and i386 provide their own versions that dispatch to aesni_xts_encrypt()/aesni_xts_decrypt() as appropriate. The AESNI_CAPABLE code and methods can then be removed. ok tb@ --- src/lib/libcrypto/modes/modes_local.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/modes') diff --git a/src/lib/libcrypto/modes/modes_local.h b/src/lib/libcrypto/modes/modes_local.h index d833d40ee3..5c1acfc25f 100644 --- a/src/lib/libcrypto/modes/modes_local.h +++ b/src/lib/libcrypto/modes/modes_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: modes_local.h,v 1.6 2025/05/18 09:05:59 jsing Exp $ */ +/* $OpenBSD: modes_local.h,v 1.7 2025/07/13 06:01:33 jsing Exp $ */ /* ==================================================================== * Copyright (c) 2010 The OpenSSL Project. All rights reserved. * @@ -46,7 +46,7 @@ struct gcm128_context { }; struct xts128_context { - void *key1, *key2; + const void *key1, *key2; block128_f block1, block2; }; -- cgit v1.2.3-55-g6feb