crypto: qat - fallback for xts with 192 bit keys
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Mon, 29 Jun 2020 17:16:20 +0000 (18:16 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jul 2020 08:25:16 +0000 (18:25 +1000)
commita85211f36f3d637cd9c8e347ae5d37b72837dafb
treeffe0e4a8d2f6db2bb0003d5eecc8b2f75dd1e4e7
parent5fb8b70d206fe25c35abc2256bfc0d4e64f1af4d
crypto: qat - fallback for xts with 192 bit keys

Forward requests to another provider if the key length for AES-XTS is
192 bits as this is not supported by the QAT accelerators.

This fixes the following issue reported with the option
CONFIG_CRYPTO_MANAGER_EXTRA_TESTS:

  alg: skcipher: qat_aes_xts setkey failed on test vector "random: len=3204 klen=48"; expected_error=0, actual_error=-22, flags=0x1

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c