]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
s390/crypto: fix gcm-aes-s390 selftest failures
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 23 May 2019 14:18:25 +0000 (16:18 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 28 May 2019 12:49:50 +0000 (14:49 +0200)
commitbef9f0ba300a55d79a69aa172156072182176515
tree436cb403754ecd71e1afa30e1e9fd90dacc89262
parent7379e652797c0b9b5f6caea1576f2dff9ce6a708
s390/crypto: fix gcm-aes-s390 selftest failures

The current kernel uses improved crypto selftests. These
tests showed that the current implementation of gcm-aes-s390
is not able to deal with chunks of output buffers which are
not a multiple of 16 bytes. This patch introduces a rework
of the gcm aes s390 scatter walk handling which now is able
to handle any input and output scatter list chunk sizes
correctly.

Code has been verified by the crypto selftests, the tcrypt
kernel module and additional tests ran via the af_alg interface.

Cc: <stable@vger.kernel.org>
Reported-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Patrick Steuer <steuer@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/crypto/aes_s390.c