summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorRaymond Mao <[email protected]>2024-10-03 14:50:18 -0700
committerTom Rini <[email protected]>2024-10-14 17:58:30 -0600
commit988e749d9770bad0a8d8fbf45bfa8af3ca88da38 (patch)
tree0944f9741626c7bdef0a7d46fcb4b380760846ce /board
parent2b6f572958f3e4ab0f5b9dde64dce6ddd477fdab (diff)
sha1: Remove sha1 non-watchdog API
We don't need an API specially for non-watchdog since sha1_csum_wd supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG. Set 0x10000 as default chunk size for SHA1. Signed-off-by: Raymond Mao <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'board')
-rw-r--r--board/gdsys/a38x/hre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/gdsys/a38x/hre.c b/board/gdsys/a38x/hre.c
index f303793b63b..06856ea36d3 100644
--- a/board/gdsys/a38x/hre.c
+++ b/board/gdsys/a38x/hre.c
@@ -166,7 +166,7 @@ static int find_key(struct udevice *tpm, const uint8_t auth[20],
return -1;
if (err)
continue;
- sha1_csum(buf, buf_len, digest);
+ sha1_csum_wd(buf, buf_len, digest, SHA1_DEF_CHUNK_SZ);
if (!memcmp(digest, pubkey_digest, 20)) {
*handle = key_handles[i];
return 0;