summaryrefslogtreecommitdiff
path: root/crypto/hash.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-14 21:35:36 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-14 21:35:36 +0800
commitbefd189385449d046cba3d637043565ccb4de96d (patch)
tree225a4a1ab2f5f67a07de36857e27544280066d1a /crypto/hash.c
parent7a63e897b210a4c3fa10022f5ced3cb1c0d72cc3 (diff)
downloadlinux-crypto-befd189385449d046cba3d637043565ccb4de96d.tar.gz
linux-crypto-befd189385449d046cba3d637043565ccb4de96d.zip
crypto: hash - Zap unaligned buffers
Some unaligned buffers on the stack weren't zapped properly which may cause secret data to be leaked. This patch fixes them by doing a zero memset. It is also possible for us to place random kernel stack contents in the digest buffer if a digest operation fails. This is fixed by only copying if the operation succeeded. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/hash.c')
0 files changed, 0 insertions, 0 deletions