]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
crypto: ccp - Fix XTS-AES-128 support on v5 CCPs
authorGary R Hook <gary.hook@amd.com>
Tue, 25 Jul 2017 19:12:11 +0000 (14:12 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 14:34:53 +0000 (10:34 -0400)
commitd6bb85352ae92cb640184f1d5cbb352c200c09c7
tree4f31ed33feb305772628e0bac28c565886211cbf
parent24159749527afe4f32aaa11cc67d68e0e45d325e
crypto: ccp - Fix XTS-AES-128 support on v5 CCPs

BugLink: http://bugs.launchpad.net/bugs/1720154
commit e652399edba99a5497f0d80f240c9075d3b43493 upstream.

Version 5 CCPs have some new requirements for XTS-AES: the type field
must be specified, and the key requires 512 bits, with each part
occupying 256 bits and padded with zeroes.

Signed-off-by: Gary R Hook <ghook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/crypto/ccp/ccp-crypto-aes-xts.c
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-ops.c
include/linux/ccp.h