summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGary R Hook <gary.hook@amd.com>2017-07-25 19:12:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-27 12:39:20 (GMT)
commitdcb3a4b8d7768cab59546aa2ce5dd214f7b526fe (patch)
tree639c7f4f5e4a96013aa144cbd2ef159229b1a2df /include
parent1f143ba19a8f1956735195feffbbecfa0c7db597 (diff)
downloadlinux-dcb3a4b8d7768cab59546aa2ce5dd214f7b526fe.tar.xz
crypto: ccp - Fix XTS-AES-128 support on v5 CCPs
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ccp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ccp.h b/include/linux/ccp.h
index edc5d04..1cfe5ef 100644
--- a/include/linux/ccp.h
+++ b/include/linux/ccp.h
@@ -1,7 +1,7 @@
/*
* AMD Cryptographic Coprocessor (CCP) driver
*
- * Copyright (C) 2013,2016 Advanced Micro Devices, Inc.
+ * Copyright (C) 2013,2017 Advanced Micro Devices, Inc.
*
* Author: Tom Lendacky <thomas.lendacky@amd.com>
* Author: Gary R Hook <gary.hook@amd.com>
@@ -222,6 +222,7 @@ enum ccp_xts_aes_unit_size {
* AES operation the new IV overwrites the old IV.
*/
struct ccp_xts_aes_engine {
+ enum ccp_aes_type type;
enum ccp_aes_action action;
enum ccp_xts_aes_unit_size unit_size;