summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-ops.c
diff options
context:
space:
mode:
authorGary R Hook <gary.hook@amd.com>2017-07-25 21:21:43 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-08-04 03:27:44 +0200
commit5060ffc97bc6fdd31595b3ecbc027b0a8df94b5c (patch)
tree229f3e3163e3e29157551cbe9b04aaf56343d953 /drivers/crypto/ccp/ccp-ops.c
parentcrypto: ccp - Rework the unit-size check for XTS-AES (diff)
downloadlinux-5060ffc97bc6fdd31595b3ecbc027b0a8df94b5c.tar.xz
linux-5060ffc97bc6fdd31595b3ecbc027b0a8df94b5c.zip
crypto: ccp - Add XTS-AES-256 support for CCP version 5
Signed-off-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-ops.c')
-rw-r--r--drivers/crypto/ccp/ccp-ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c
index 10e3be8d93ce..cc16cb0fc3af 100644
--- a/drivers/crypto/ccp/ccp-ops.c
+++ b/drivers/crypto/ccp/ccp-ops.c
@@ -1065,6 +1065,8 @@ static int ccp_run_xts_aes_cmd(struct ccp_cmd_queue *cmd_q,
if (xts->key_len == AES_KEYSIZE_128)
aestype = CCP_AES_TYPE_128;
+ else if (xts->key_len == AES_KEYSIZE_256)
+ aestype = CCP_AES_TYPE_256;
else
return -EINVAL;