linux/arch/s390/crypto
Martin Schwidefsky 7bac4f5b8e s390/crypto: simplify CPACF encryption / decryption functions
The double while loops of the CTR mode encryption / decryption functions
are overly complex for little gain. Simplify the functions to a single
while loop at the cost of an additional memcpy of a few bytes for every
4K page worth of data.
Adapt the other crypto functions to make them all look alike.

Reviewed-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-08-29 11:05:11 +02:00
..
aes_s390.c s390/crypto: simplify CPACF encryption / decryption functions 2016-08-29 11:05:11 +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 CPACF encryption / decryption functions 2016-08-29 11:05:11 +02:00
ghash_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +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: cpacf function detection 2016-08-29 11:05:09 +02:00
sha1_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha256_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha512_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +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