diff options
author | Eric Biggers <ebiggers@kernel.org> | 2025-08-01 14:24:22 -0700 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2025-10-10 08:21:45 +0300 |
commit | 64a7cfbcf548bb955220c15c39531befe0611475 (patch) | |
tree | 7618486bd9a3606afda98c5198a77b760c830daf /drivers/gpu/drm/amd/amdgpu/amdgpu_utils.h | |
parent | 2c2615c8423890b5ef8e0a186b65607ef5fdeda1 (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 'drivers/gpu/drm/amd/amdgpu/amdgpu_utils.h')
0 files changed, 0 insertions, 0 deletions