commit | 7bac4f5b8e3a607f7ba1d3a652f5922a657fa9e8 | [log] [tgz] |
---|---|---|
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | Mon Aug 15 15:17:52 2016 +0200 |
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | Mon Aug 29 11:05:11 2016 +0200 |
tree | a1c868629d1cb6c7ab563e0e5bb6c9c176f91fb9 | |
parent | 69c0e360f990c2dc737681f40a361195066cef02 [diff] |
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>