]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: ccp - Fix 3DES complaint from ccp-crypto module
authorHook, Gary <Gary.Hook@amd.com>
Tue, 14 May 2019 21:53:30 +0000 (21:53 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commita35e85e6db0e8f3ab35764c13bbe4a03f7e462e0
tree3f50d3d49979d43952010caa7fc734f60d91eed1
parentdd51b599d6b5dde445e29b62ed76c5e04519d5dd
crypto: ccp - Fix 3DES complaint from ccp-crypto module

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 89646fdda4cae203185444ac7988835f36a21ee1 ]

Crypto self-tests reveal an error:

alg: skcipher: cbc-des3-ccp encryption test failed (wrong output IV) on test vector 0, cfg="in-place"

The offset value should not be recomputed when retrieving the context.
Also, a code path exists which makes decisions based on older (version 3)
hardware; a v3 device deosn't support 3DES so remove this check.

Fixes: 990672d48515 ('crypto: ccp - Enable 3DES function on v5 CCPs')
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/crypto/ccp/ccp-ops.c