]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/crypto: Add hardware acceleration for full AES-XTS mode
authorHolger Dengler <dengler@linux.ibm.com>
Fri, 25 Oct 2024 15:12:49 +0000 (17:12 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:19 +0000 (11:17 +0100)
commit666300dae851b435ae81157fe7bb849603ccd3dc
treeb1179ee15120ab5d7162edb2ac657bfb59f52bfe
parentf4d3cf6b8b8389c839762987d45f31f863b84afd
s390/crypto: Add hardware acceleration for full AES-XTS mode

Extend the existing paes cipher to exploit the full AES-XTS hardware
acceleration introduced with message-security assist extension 10.

The full AES-XTS mode requires a protected key of type
PKEY_KEYTYPE_AES_XTS_128 or PKEY_KEYTYPE_AES_XTS_256.

Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/crypto/paes_s390.c
arch/s390/include/asm/cpacf.h