aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/string.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-01-06 07:54:41 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-01-08 21:46:19 +1100
commitad511e260a27b8e35d273cc0ecfe5a8ff9543181 (patch)
tree15a7d801cbeb7d33584b8e2a55eff0df73041fd4 /lib/string.c
parentcrypto: aead - add check for presence of auth tag (diff)
downloadwireguard-linux-ad511e260a27b8e35d273cc0ecfe5a8ff9543181.tar.xz
wireguard-linux-ad511e260a27b8e35d273cc0ecfe5a8ff9543181.zip
crypto: qat - Fix incorrect uses of memzero_explicit
memzero_explicit should only be used on stack variables that get zapped just before they go out of scope. This patch replaces all unnecessary uses of memzero_explicit with memset, removes two memzero_explicit calls altogether as the tfm context comes pre-zeroed, and adds a missing memzero_explicit of the stack variable buff in qat_alg_do_precomputes. The memzeros on ipad/opad + digest_size/auth_keylen are also removed as the entire auth_state is already zeroed on entry. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Tadeusz Struk <tadeusz.struk@intel.com>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions