diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-15 15:17:52 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-29 11:05:11 +0200 |
commit | 7bac4f5b8e3a607f7ba1d3a652f5922a657fa9e8 (patch) | |
tree | a1c868629d1cb6c7ab563e0e5bb6c9c176f91fb9 /drivers/s390/scsi | |
parent | s390/crypto: cpacf function detection (diff) | |
download | linux-dev-7bac4f5b8e3a607f7ba1d3a652f5922a657fa9e8.tar.xz linux-dev-7bac4f5b8e3a607f7ba1d3a652f5922a657fa9e8.zip |
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>
Diffstat (limited to 'drivers/s390/scsi')
0 files changed, 0 insertions, 0 deletions