diff options
author | Gary R Hook <gary.hook@amd.com> | 2019-07-30 16:05:24 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-16 10:10:51 +0200 |
commit | 9552214366b55878d9b0958f00eea7fc61ca50a2 (patch) | |
tree | d21ed58adf9d8d41e7492c5f7c1d144aeb2bc339 /include/linux/ccp.h | |
parent | 14c9a32ed2c6450fc2cf7c4147c4c4923de4aff4 (diff) | |
download | linux-stable-9552214366b55878d9b0958f00eea7fc61ca50a2.tar.gz linux-stable-9552214366b55878d9b0958f00eea7fc61ca50a2.tar.bz2 linux-stable-9552214366b55878d9b0958f00eea7fc61ca50a2.zip |
crypto: ccp - Add support for valid authsize values less than 16
commit 9f00baf74e4b6f79a3a3dfab44fb7bb2e797b551 upstream.
AES GCM encryption allows for authsize values of 4, 8, and 12-16 bytes.
Validate the requested authsize, and retain it to save in the request
context.
Fixes: 36cf515b9bbe2 ("crypto: ccp - Enable support for AES GCM on v5 CCPs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gary R Hook <gary.hook@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/linux/ccp.h')
-rw-r--r-- | include/linux/ccp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ccp.h b/include/linux/ccp.h index 55cb455cfcb0..a5dfbaf2470d 100644 --- a/include/linux/ccp.h +++ b/include/linux/ccp.h @@ -170,6 +170,8 @@ struct ccp_aes_engine { enum ccp_aes_mode mode; enum ccp_aes_action action; + u32 authsize; + struct scatterlist *key; u32 key_len; /* In bytes */ |