crypto: qce - Improve the conditions for requesting AES fallback cipher
authorThara Gopinath <thara.gopinath@linaro.org>
Thu, 11 Feb 2021 20:01:25 +0000 (15:01 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 7 Mar 2021 04:13:16 +0000 (15:13 +1100)
commit25b71d61d6317212274b822e1cdbb03e499eea43
tree6ac848e0cff41318542ca0df626ae27395feb3e8
parent02d0dae3ce2adb5549c7f6c6e714181ed6ee100d
crypto: qce - Improve the conditions for requesting AES fallback cipher

The following are the conditions for requesting AES fallback cipher.
-  AES-192
- AES-XTS request with len <= 512 byte (Allow messages of length
  less than 512 bytes for all other AES encryption algorithms other
  than AES XTS)
- AES-XTS request with len > QCE_SECTOR_SIZE and is not a multiple
  of it

Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/skcipher.c