diff options
author | Gary R Hook <gary.hook@amd.com> | 2017-03-15 13:20:43 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-03-24 22:02:54 +0800 |
commit | ccebcf3f224a44ec8e9c5bfca9d8e5d29298a5a8 (patch) | |
tree | a463b4fcb62bd3e30d4069979e2a882ea64e34d0 /drivers/crypto/ccp/ccp-crypto.h | |
parent | 146c8688d99c574d9ff0af17eca51bbd6402a57f (diff) | |
download | blackbird-obmc-linux-ccebcf3f224a44ec8e9c5bfca9d8e5d29298a5a8.tar.gz blackbird-obmc-linux-ccebcf3f224a44ec8e9c5bfca9d8e5d29298a5a8.zip |
crypto: ccp - Add SHA-2 384- and 512-bit support
Incorporate 384-bit and 512-bit hashing for a version 5 CCP
device
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-crypto.h')
-rw-r--r-- | drivers/crypto/ccp/ccp-crypto.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/crypto/ccp/ccp-crypto.h b/drivers/crypto/ccp/ccp-crypto.h index 8335b32e815e..95cce2764139 100644 --- a/drivers/crypto/ccp/ccp-crypto.h +++ b/drivers/crypto/ccp/ccp-crypto.h @@ -137,9 +137,11 @@ struct ccp_aes_cmac_exp_ctx { u8 buf[AES_BLOCK_SIZE]; }; -/***** SHA related defines *****/ -#define MAX_SHA_CONTEXT_SIZE SHA256_DIGEST_SIZE -#define MAX_SHA_BLOCK_SIZE SHA256_BLOCK_SIZE +/* SHA-related defines + * These values must be large enough to accommodate any variant + */ +#define MAX_SHA_CONTEXT_SIZE SHA512_DIGEST_SIZE +#define MAX_SHA_BLOCK_SIZE SHA512_BLOCK_SIZE struct ccp_sha_ctx { struct scatterlist opad_sg; |