diff options
| author | 2026-09-28 10:30:54 +0200 | |
|---|---|---|
| committer | 2026-09-30 09:42:09 -0700 | |
| commit | fb4ccd3d321f890c87e74c5937a74ece822f47e6 (patch) | |
| tree | 14e2f493e14d43850f57add2d725c92b069fbe24 /scripts/Makefile.thinlto | |
| parent | x86/purgatory: Compile purgatory with -D__NO_FORTIFY and -D__DISABLE_EXPORTS (diff) | |
lib/crypto: sha2: Provide functions for zeroizing SHA2 hmac_sha* structures
In certain cases crypto code functions need to zeroize their local SHA2
hmac_sha*_key or hmac_sha*_ctx structures after use to avoid leaking
sensitive material on the stack.
Provide hmac_sha*_zeroize_key() and hmac_sha*_zeroize_ctx() helper
functions that can be used with __cleanup() to automatically zeroize
the structure when it goes out of scope.
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://patch.msgid.link/20260928083055.104266-3-thuth@redhat.com
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
