]> git.ipfire.org Git - thirdparty/openssl.git/commit
Migrate s390x AES-XTS to standard HW interface
authorSimo Sorce <simo@redhat.com>
Thu, 11 Jun 2026 17:38:05 +0000 (13:38 -0400)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 27 Jun 2026 09:04:36 +0000 (11:04 +0200)
commit774525b38bd47b3e895249a81aa885239a7d2061
tree33faa0d2d2fc5e42ac20c25fb49f63da4b32c349
parent5339c5219fc605b47db44041e835ff15a9444f50
Migrate s390x AES-XTS to standard HW interface

Move the s390x-specific AES-XTS implementation from `cipher_aes_xts_s390x.inc`
to `cipher_aes_xts_hw.c`, adapting it to use the standard `PROV_CIPHER_HW`
dispatch structure.

This refactoring removes standalone initialization wrappers and integrates the
s390x hardware backend more cleanly with the generic AES-XTS provider code. It
also reduces code duplication by relying on the generic layer for common
validations (such as the maximum blocks per data unit limit) before invoking
the hardware-specific stream cipher.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
MergeDate: Sat Jun 27 09:05:46 2026
(Merged from https://github.com/openssl/openssl/pull/31472)
providers/implementations/ciphers/cipher_aes_xts.c
providers/implementations/ciphers/cipher_aes_xts.h
providers/implementations/ciphers/cipher_aes_xts_hw.c
providers/implementations/ciphers/cipher_aes_xts_s390x.inc [deleted file]