summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@bootlin.com>2018-05-29 14:13:49 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-06-22 23:03:05 +0800
commit26f7120b86a964a886ececb9eb8e6dd50276dbb2 (patch)
tree57a6b6549cbe70bd3bebba95234da6c12fef1d9c /include/crypto
parent87eee125e7490cf17e2de845a8b81b5bf63929c7 (diff)
downloadlinux-26f7120b86a964a886ececb9eb8e6dd50276dbb2.tar.gz
linux-26f7120b86a964a886ececb9eb8e6dd50276dbb2.tar.bz2
linux-26f7120b86a964a886ececb9eb8e6dd50276dbb2.zip
crypto: sha512_generic - add a sha384 0-length pre-computed hash
This patch adds the sha384 pre-computed 0-length hash so that device drivers can use it when an hardware engine does not support computing a hash from a 0 length input. Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/sha.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index 799f071b93df..8a46202b1857 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -71,6 +71,8 @@ extern const u8 sha224_zero_message_hash[SHA224_DIGEST_SIZE];
extern const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE];
+extern const u8 sha384_zero_message_hash[SHA384_DIGEST_SIZE];
+
extern const u8 sha512_zero_message_hash[SHA512_DIGEST_SIZE];
struct sha1_state {