crypto: sha512_generic - add a sha512 0-length pre-computed hash
This patch adds the sha512 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>
This commit is contained in:

committed by
Herbert Xu

parent
25bc955103
commit
30c217ef64
@@ -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 sha512_zero_message_hash[SHA512_DIGEST_SIZE];
|
||||
|
||||
struct sha1_state {
|
||||
u32 state[SHA1_DIGEST_SIZE / 4];
|
||||
u64 count;
|
||||
|
Reference in New Issue
Block a user