diff options
| author | Thomas Huth <thuth@redhat.com> | 2026-09-16 11:50:07 +0200 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-09-30 09:33:54 -0700 |
| commit | 91b4ebff7a88ee3a0570b0058b054ecf527cefa2 (patch) | |
| tree | cbb5304054e0093d959e6c55dcf6e2b663bcde74 /tools/perf/scripts/python | |
| parent | dbb5091fb6c937ff312257aaf9b772216c3ca8f6 (diff) | |
| download | linux-91b4ebff7a88ee3a0570b0058b054ecf527cefa2.tar.gz linux-91b4ebff7a88ee3a0570b0058b054ecf527cefa2.zip | |
lib/crypto: md5: Provide functions for zeroizing hmac_md5 structures
In certain cases crypto code functions need to zeroize their local
hmac_md5_key or hmac_md5_ctx structures after use to avoid leaking
sensitive material on the stack.
Provide hmac_md5_zeroize_key() and hmac_md5_zeroize_ctx() helper
functions that e.g. can be used with __cleanup() to automatically
zeroize the structure when it goes out of scope.
While we're at it, replace the related memzero_explicit() call in
lib/crypto/md5.c with a call to the new helper function.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://patch.msgid.link/20260916095022.604354-6-thuth@redhat.com
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
