s390/crypto: Adjust s390 aes and paes cipher priorities
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Thu, 5 Apr 2018 18:27:47 +0000 (20:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 Apr 2018 05:38:54 +0000 (07:38 +0200)
commitaff304e7a0e8f926edafcd1e0e4f6da2866e9845
tree13796ac68b411f5cf6ea9e097c6108c41bd4bda3
parentc18bb396d3d261ebbb4efbc05129c5d354c541e4
s390/crypto: Adjust s390 aes and paes cipher priorities

Tests with paes-xts and debugging investigations showed
that the ciphers are not always correctly resolved.
The rules for cipher priorities seem to be:
 - Ecb-aes should have a prio greater than the
   generic ecb-aes.
 - The mode specialized ciphers (like cbc-aes-s390)
   should have a prio greater than the sum of the
   more generic combinations (like cbs(aes)).

This patch adjusts the cipher priorities for the
s390 aes and paes in kernel crypto implementations.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/aes_s390.c
arch/s390/crypto/paes_s390.c