crypto: hash - Add helpers to zero stack request/descriptor
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jan 2016 15:17:58 +0000 (23:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Jan 2016 14:42:11 +0000 (22:42 +0800)
commite67ffe0af4d450e95e5f9bb7d081500e30777857
tree98409c608f62e24177d8ee1b92c76d3861fbf5dc
parentb3614763059b82c26bdd02ffcb1c016c1132aad0
crypto: hash - Add helpers to zero stack request/descriptor

As the size of an ahash_request or shash_desc is variable, it's
awkward to zero them explicitly.  This patch adds helpers to do
that which should be used when they are created on the stack.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/hash.h