]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:53:14 +0000 (10:53 -0700)
commitf2b06d8965f746ab9bec709b67f6bdb3abb71a46
treefd2560bbde0af12858e5ea900763b930387e3cfb
parentf0e641e9b14120995e660a2ea4541ab53c57b72a
crypto: hash - add zero length message hash for shax and md5

Orabug: 26644685

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>
(cherry picked from commit 0c4c78de0417ced1da92351a3013e631860ea576)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
Conflicts:
include/crypto/md5.h
crypto/md5.c
crypto/sha1_generic.c
crypto/sha256_generic.c
include/crypto/md5.h
include/crypto/sha.h