Skip to content
Commit 8c32c516 authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 500b3e3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment