Home GnuPG

_gcry_burn_stack: use memset for clearing memory

Description

_gcry_burn_stack: use memset for clearing memory

* src/misc.c (__gcry_burn_stack) [HAVE_VLA]: Use 'memset' for clearing
stack.

Patch switches stacking burning to use faster memset instead of
wipememory. Memset is accessed through volatile function pointer,
so that compiler will not optimize away the call.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Mar 22 2018, 8:42 PM
Parents
rCa1127dbbada4: Improve constant-time buffer compare
Branches
Unknown
Tags
Unknown