diff options
author | Simon Glass <sjg@chromium.org> | 2024-12-19 11:29:07 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-27 15:16:10 -0600 |
commit | 6f1b27a724b0d75bf89cc0f8be95fc3bcb4d4fe8 (patch) | |
tree | 20191f61b0279738ecf2fbaa281f7fe5cf775fd3 /lib/crc8.c | |
parent | 286b48c9579eed29cbb53584c58c382c268cabfd (diff) |
hash: Plumb crc8 into the hash functions
Add an entry for crc8, with watchdog handling.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'lib/crc8.c')
-rw-r--r-- | lib/crc8.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/crc8.c b/lib/crc8.c index 20d46d16147..811e19917b4 100644 --- a/lib/crc8.c +++ b/lib/crc8.c @@ -32,3 +32,9 @@ unsigned int crc8(unsigned int crc, const unsigned char *vptr, int len) return crc; } + +void crc8_wd_buf(const unsigned char *input, unsigned int len, + unsigned char output[1], unsigned int chunk_sz) +{ + *output = crc8(0, input, len); +} |