diff options
| author | Thomas Huth <thuth@redhat.com> | 2026-08-07 14:58:38 +0200 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-08-10 20:13:41 -0700 |
| commit | adbc4db2c0f0251e5a5a20edd8d8444ce854d80f (patch) | |
| tree | 22076fdbb497f67af416276869b2bffdb7dae1dc /tools/unittests/git@git.tavy.me:linux.git | |
| parent | 6d22ec26295c1412d765e3d687e46224fc332928 (diff) | |
lib/crypto: aes-cmac: Add zeroization functions
Code that uses AES-CMAC might need to zeroize their local aes_cmac_key
and/or aes_cmac_ctx structures after use to avoid leaking sensitive
material on the stack.
Provide an aes_cmac_zeroize_key() and an aes_cmac_zeroize_ctx() helper
function that can be used with __cleanup() to automatically clear the
key and context when they go out of scope.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://patch.msgid.link/20260807125845.1477067-2-thuth@redhat.com
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'tools/unittests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
