diff options
author | Gary R Hook <gary.hook@amd.com> | 2017-07-25 14:21:43 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-08-04 09:27:44 +0800 |
commit | 5060ffc97bc6fdd31595b3ecbc027b0a8df94b5c (patch) | |
tree | 229f3e3163e3e29157551cbe9b04aaf56343d953 /drivers/crypto/ccp/ccp-ops.c | |
parent | 7f7216cfaf3f07a41fe6e88b779bdc9690c2d515 (diff) | |
download | linux-5060ffc97bc6fdd31595b3ecbc027b0a8df94b5c.tar.bz2 |
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.c | 2 |
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; |