summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/modes
diff options
context:
space:
mode:
authorjsing <>2025-07-13 06:01:33 +0000
committerjsing <>2025-07-13 06:01:33 +0000
commit55a6fa359c711ca58fdf4ab2e45fb4d6e5ee0265 (patch)
treea43688f8969e5bd862faf101152f51b1560e7731 /src/lib/libcrypto/modes
parent8082d2222ff57c8446f00bdd20755af6c4f93747 (diff)
downloadopenbsd-55a6fa359c711ca58fdf4ab2e45fb4d6e5ee0265.tar.gz
openbsd-55a6fa359c711ca58fdf4ab2e45fb4d6e5ee0265.tar.bz2
openbsd-55a6fa359c711ca58fdf4ab2e45fb4d6e5ee0265.zip
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@
Diffstat (limited to 'src/lib/libcrypto/modes')
-rw-r--r--src/lib/libcrypto/modes/modes_local.h4
1 files changed, 2 insertions, 2 deletions
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 @@
1/* $OpenBSD: modes_local.h,v 1.6 2025/05/18 09:05:59 jsing Exp $ */ 1/* $OpenBSD: modes_local.h,v 1.7 2025/07/13 06:01:33 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -46,7 +46,7 @@ struct gcm128_context {
46}; 46};
47 47
48struct xts128_context { 48struct xts128_context {
49 void *key1, *key2; 49 const void *key1, *key2;
50 block128_f block1, block2; 50 block128_f block1, block2;
51}; 51};
52 52