summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-08-01 14:24:22 -0700
committerJarkko Sakkinen <jarkko@kernel.org>2025-10-10 08:21:45 +0300
commit64a7cfbcf548bb955220c15c39531befe0611475 (patch)
tree7618486bd9a3606afda98c5198a77b760c830daf /net/unix/af_unix.c
parent2c2615c8423890b5ef8e0a186b65607ef5fdeda1 (diff)
tpm: Use HMAC-SHA256 library instead of open-coded HMAC
Now that there are easy-to-use HMAC-SHA256 library functions, use these in tpm2-sessions.c instead of open-coding the HMAC algorithm. Note that the new implementation correctly handles keys longer than 64 bytes (SHA256_BLOCK_SIZE), whereas the old implementation handled such keys incorrectly. But it doesn't appear that such keys were being used. Signed-off-by: Eric Biggers <ebiggers@kernel.org> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions