linux-stable/arch/s390/crypto
Stephan Mueller 28856a9e52 crypto: xts - consolidate sanity check for keys
The patch centralizes the XTS key check logic into the service function
xts_check_key which is invoked from the different XTS implementations.
With this, the XTS implementations in ARM, ARM64, PPC and S390 have now
a sanity check for the XTS keys similar to the other arches.

In addition, this service function received a check to ensure that the
key != the tweak key which is mandated by FIPS 140-2 IG A.9. As the
check is not present in the standards defining XTS, it is only enforced
in FIPS mode of the kernel.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-02-17 04:07:51 +08:00
..
aes_s390.c crypto: xts - consolidate sanity check for keys 2016-02-17 04:07:51 +08:00
crypt_s390.h s390/zcrypt: Introduce new SHA-512 based Pseudo Random Generator. 2015-04-23 16:56:21 +02:00
des_s390.c s390/crypto: add cpu feature modaliases for crypto modules 2015-07-22 09:58:02 +02:00
ghash_s390.c s390/crypto: add cpu feature modaliases for crypto modules 2015-07-22 09:58:02 +02:00
Makefile crypto: s390 - add System z hardware support for GHASH 2011-05-04 15:06:32 +10:00
prng.c s390/crypto: add cpu feature modaliases for crypto modules 2015-07-22 09:58:02 +02:00
sha.h crypto: s390/sha - replace raw value by their coresponding define 2015-10-15 21:05:11 +08:00
sha1_s390.c s390/crypto: add cpu feature modaliases for crypto modules 2015-07-22 09:58:02 +02:00
sha256_s390.c s390/crypto: add cpu feature modaliases for crypto modules 2015-07-22 09:58:02 +02:00
sha512_s390.c s390/crypto: add cpu feature modaliases for crypto modules 2015-07-22 09:58:02 +02:00
sha_common.c s390/crypto: Don't panic after crypto instruction failures 2012-11-23 11:14:27 +01:00