]> git.karo-electronics.de Git - linux-beck.git/commit
crypto: algif_hash - Handle NULL hashes correctly
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 1 Sep 2016 09:16:44 +0000 (17:16 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Sep 2016 13:08:28 +0000 (21:08 +0800)
commit493b2ed3f7603a15ff738553384d5a4510ffeb95
tree064221b1febbd2629423bebea8673f830689490a
parent5ba1c7b5ffc16ecf245f41805e46f7351c115e57
crypto: algif_hash - Handle NULL hashes correctly

Right now attempting to read an empty hash simply returns zeroed
bytes, this patch corrects this by calling the digest function
using an empty input.

Reported-by: Russell King - ARM Linux <linux@armlinux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_hash.c