crypto: sha512_generic - add a sha512 0-length pre-computed hash
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 29 May 2018 12:13:45 +0000 (14:13 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jun 2018 15:03:02 +0000 (23:03 +0800)
commit30c217ef6411d24b8c8b0478b89335dc2dabe6e8
tree7505b9dc1f4f7d4a05d221d61c640879b46d1614
parent25bc95510317dc7259299adb786f050617199b42
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>
crypto/sha512_generic.c
include/crypto/sha.h