linux/arch/s390/crypto
Ingo Franzki b81126e01a s390/crypto: Fix return code checking in cbc_paes_crypt()
The return code of cpacf_kmc() is less than the number of
bytes to process in case of an error, not greater.
The crypt routines for the other cipher modes already have
this correctly.

Cc: stable@vger.kernel.org # v4.11+
Fixes: 2793784307 ("s390/crypt: Add protected key AES module")
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Acked-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-09-04 10:58:17 +02:00
..
aes_s390.c crypto: aead - remove useless setting of type flags 2018-07-09 00:30:26 +08:00
arch_random.c s390/archrandom: Rework arch random implementation. 2018-05-30 11:18:04 +02:00
crc32-vx.c crypto: hash - annotate algorithms taking optional key 2018-01-12 23:03:35 +11:00
crc32be-vx.S s390/crc32-vx: use expoline for indirect branches 2018-05-07 09:07:34 +02:00
crc32le-vx.S s390/crc32-vx: use expoline for indirect branches 2018-05-07 09:07:34 +02:00
des_s390.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
ghash_s390.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
paes_s390.c s390/crypto: Fix return code checking in cbc_paes_crypt() 2018-09-04 10:58:17 +02:00
prng.c s390: crypto: add SPDX identifiers to the remaining files 2017-11-24 15:37:14 +01:00
sha1_s390.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
sha256_s390.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
sha512_s390.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
sha_common.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
sha.h s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00