Herbert Xu 8c32c516eb 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>
2009-07-14 21:35:36 +08:00
..
2008-12-25 11:05:13 +11:00
2009-07-14 21:35:36 +08:00
2008-12-25 11:02:07 +11:00
2009-03-04 14:43:52 +08:00
2009-07-14 12:58:04 +08:00
2009-06-21 21:38:03 +08:00
2009-02-17 20:00:11 +08:00
2008-12-25 11:02:16 +11:00
2008-12-25 11:02:18 +11:00
2008-12-25 11:02:09 +11:00
2008-12-25 11:02:10 +11:00
2008-12-25 11:02:12 +11:00
2008-12-25 11:02:13 +11:00
2009-07-14 21:35:36 +08:00
2009-07-14 16:06:54 +08:00
2008-12-25 11:02:21 +11:00
2008-12-25 11:02:22 +11:00
2009-07-14 12:58:06 +08:00