linux/arch/s390/crypto
Martin Schwidefsky 0177db01ad s390/crypto: simplify return code handling
The CPACF instructions can complete with three different condition codes:
CC=0 for successful completion, CC=1 if the protected key verification
failed, and CC=3 for partial completion.

The inline functions will restart the CPACF instruction for partial
completion, this removes the CC=3 case. The CC=1 case is only relevant
for the protected key functions of the KM, KMC, KMAC and KMCTR
instructions. As the protected key functions are not used by the
current code, there is no need for any kind of return code handling.

Reviewed-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-08-29 11:05:07 +02:00
..
aes_s390.c s390/crypto: simplify return code handling 2016-08-29 11:05:07 +02:00
crc32-vx.c s390/fpu: improve kernel_fpu_[begin|end] 2016-08-29 11:05:01 +02:00
crc32be-vx.S s390/crc32-vx: use vector instructions to optimize CRC-32 computation 2016-06-14 16:54:16 +02:00
crc32le-vx.S s390/crc32-vx: use vector instructions to optimize CRC-32 computation 2016-06-14 16:54:16 +02:00
des_s390.c s390/crypto: simplify return code handling 2016-08-29 11:05:07 +02:00
ghash_s390.c s390/crypto: simplify return code handling 2016-08-29 11:05:07 +02:00
Makefile s390/crc32-vx: add crypto API module for optimized CRC-32 algorithms 2016-06-15 16:36:34 +02:00
prng.c s390/crypto: simplify return code handling 2016-08-29 11:05:07 +02:00
sha1_s390.c s390/crypto: cleanup and move the header with the cpacf definitions 2016-04-15 18:16:40 +02:00
sha256_s390.c s390/crypto: cleanup and move the header with the cpacf definitions 2016-04-15 18:16:40 +02:00
sha512_s390.c s390/crypto: cleanup and move the header with the cpacf definitions 2016-04-15 18:16:40 +02:00
sha_common.c s390/crypto: simplify return code handling 2016-08-29 11:05:07 +02:00
sha.h crypto: s390/sha - replace raw value by their coresponding define 2015-10-15 21:05:11 +08:00