summaryrefslogtreecommitdiff
path: root/crypto/crct10dif_generic.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-09-01 17:16:44 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-09-07 21:08:28 +0800
commit1acbf36cd3585776cdc2abe203648fbefdd13c3c (patch)
treebcde85da63625a2624bc87b21903f9ebb1498a24 /crypto/crct10dif_generic.c
parent33240596a7401acdfa51d8c396be70fbf3ec7e96 (diff)
downloadlinux-crypto-1acbf36cd3585776cdc2abe203648fbefdd13c3c.tar.gz
linux-crypto-1acbf36cd3585776cdc2abe203648fbefdd13c3c.zip
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>
Diffstat (limited to 'crypto/crct10dif_generic.c')
0 files changed, 0 insertions, 0 deletions