summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2026-09-16 11:50:03 +0200
committerEric Biggers <ebiggers@kernel.org>2026-09-30 09:33:54 -0700
commit72f4c2eae4036d0d5e63f9aa548c2688f8f99ff1 (patch)
tree85a2c130749ec76d92113354a14e70415da907f4 /tools/perf/scripts/python/stackcollapse.py
parent572af6872e520c7102e58362ef7cd7c2ed4342be (diff)
downloadlinux-72f4c2eae4036d0d5e63f9aa548c2688f8f99ff1.tar.gz
linux-72f4c2eae4036d0d5e63f9aa548c2688f8f99ff1.zip
lib/crypto: aes: Provide functions for zeroizing aes_key and aes_enckey
Some crypto functions need to zeroize their local aes_key or aes_enckey structures after use to avoid leaking sensitive material on the stack. Provide aes_zeroize_key() and aes_zeroize_enckey() helper functions that can be used with __cleanup() to automatically zeroize the structs when they go out of scope. While we're at it, replace the memzero_explicit() calls in lib/crypto/aes.c with the new helper functions. Signed-off-by: Thomas Huth <thuth@redhat.com> Link: https://patch.msgid.link/20260916095022.604354-2-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