]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: ccp - Rework the unit-size check for XTS-AES
authorGary R Hook <gary.hook@amd.com>
Tue, 25 Jul 2017 19:21:34 +0000 (14:21 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Aug 2017 01:27:43 +0000 (09:27 +0800)
commit7f7216cfaf3f07a41fe6e88b779bdc9690c2d515
treee24603f4ffad3638f334c2fb2d73c4147a921afc
parent47f27f160be6d26d61d3e75923e635e4e6c099fb
crypto: ccp - Rework the unit-size check for XTS-AES

The CCP supports a limited set of unit-size values. Change the check
for this parameter such that acceptable values match the enumeration.
Then clarify the conditions under which we must use the fallback
implementation.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-aes-xts.c