]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qce - Return unsupported if key1 and key 2 are same for AES XTS algorithm
authorThara Gopinath <thara.gopinath@linaro.org>
Thu, 11 Feb 2021 20:01:20 +0000 (15:01 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 7 Mar 2021 04:13:16 +0000 (15:13 +1100)
commite73c5448477ad0c09db8bd4594e6a1c948962334
tree2b33bedf51a37363d9d58c25dd21013505ff781e
parenta5236a117733cf66e5804428a7941e9af28bea73
crypto: qce - Return unsupported if key1 and key 2 are same for AES XTS algorithm

Crypto engine does not support key1 = key2 for AES XTS algorithm; the
operation hangs the engines.  Return -EINVAL in case key1 and key2 are the
same.

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