diff options
| author | Thomas Huth <thuth@redhat.com> | 2026-09-28 10:30:54 +0200 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-09-30 09:42:09 -0700 |
| commit | fb4ccd3d321f890c87e74c5937a74ece822f47e6 (patch) | |
| tree | 14e2f493e14d43850f57add2d725c92b069fbe24 /tools/perf/scripts/python/stackcollapse.py | |
| parent | e5fc5477391326a84217da8b35899ed6547552f0 (diff) | |
| download | linux-fb4ccd3d321f890c87e74c5937a74ece822f47e6.tar.gz linux-fb4ccd3d321f890c87e74c5937a74ece822f47e6.zip | |
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
