crypto: hash - add zero length message hash for shax and md5
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Thu, 17 Dec 2015 12:45:39 +0000 (13:45 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 22 Dec 2015 12:43:35 +0000 (20:43 +0800)
commit0c4c78de0417ced1da92351a3013e631860ea576
tree1901728828a5891d3a8e1f5db23226682a9bb41d
parent51d77dddfff4a554744bfa0e67cf571319635645
crypto: hash - add zero length message hash for shax and md5

Some crypto drivers cannot process empty data message and return a
precalculated hash for md5/sha1/sha224/sha256.

This patch add thoses precalculated hash in include/crypto.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/md5.c
crypto/sha1_generic.c
crypto/sha256_generic.c
include/crypto/md5.h
include/crypto/sha.h