summaryrefslogtreecommitdiff
path: root/tools/unittests/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2026-08-07 14:58:39 +0200
committerEric Biggers <ebiggers@kernel.org>2026-08-12 18:50:41 -0700
commit2b240733f27c8dd7e192f36540a10dcb88339222 (patch)
tree5ccb2bec26357b116fd38fe0f116e02156340a19 /tools/unittests/git@git.tavy.me:linux.git
parentadbc4db2c0f0251e5a5a20edd8d8444ce854d80f (diff)
smb: clear the aes_cmac_key and aes_cmac_ctx when done
Clear the local crypto-related structures via __cleanup() functions when we're done with them to avoid that sensitive data could leak on the stack. Note: cmac_ctx in ksmbd_sign_smb3_pdu() gets cleared in aes_cmac_final() already, so this does not need a __cleanup() marker. Signed-off-by: Thomas Huth <thuth@redhat.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Link: https://patch.msgid.link/20260807125845.1477067-3-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