]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: skcipher - Add helper to zero stack request
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jan 2016 15:21:10 +0000 (23:21 +0800)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:54:15 +0000 (10:54 -0700)
commit4cbd16c5f82505c7d0acc0f7e540d97da2e3cae7
treee1ed46d4a41c9e9634b5f3d516388feb0c93c208
parent5b9af3ffa27f8abeab549b19f2387fdaf373fb6a
crypto: skcipher - Add helper to zero stack request

Orabug: 26644685

As the size of an skcipher_request is variable, it's awkward to
zero it explicitly.  This patch adds a helper to do that which
should be used when it is created on the stack.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 1aaa753d918c48c603195a468766e6a2b32b87f9)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
include/crypto/skcipher.h