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)
commitf0d078dd6c490535ccd7f1694813295dae99814e
tree2b33bedf51a37363d9d58c25dd21013505ff781e
parent38de3cf21fc057f37ae6fb1f46a6fbe852792789
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