]> git.ipfire.org Git - thirdparty/hostap.git/commit
crypto: Clear secrets from stack in hmac_sha256_vector()
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 5 Dec 2022 13:36:08 +0000 (15:36 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 16 Dec 2022 20:49:07 +0000 (22:49 +0200)
commit998aeca3c83bbc57524375a7a45a4455c7a915e9
tree91013889b948ae017231f3963704566b235cb773
parent909864ab1eea75d9058efef166ae87a26ee07973
crypto: Clear secrets from stack in hmac_sha256_vector()

k_pad and tk were not cleared in internal HMAC-SHA256 implementation.
Clear them to avoid leaving secret material in temporary stack
variables.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/crypto/sha256.c