summaryrefslogtreecommitdiff
path: root/include/u-boot
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-12-19 11:29:07 -0700
committerTom Rini <[email protected]>2024-12-27 15:16:10 -0600
commit6f1b27a724b0d75bf89cc0f8be95fc3bcb4d4fe8 (patch)
tree20191f61b0279738ecf2fbaa281f7fe5cf775fd3 /include/u-boot
parent286b48c9579eed29cbb53584c58c382c268cabfd (diff)
hash: Plumb crc8 into the hash functions
Add an entry for crc8, with watchdog handling. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
Diffstat (limited to 'include/u-boot')
-rw-r--r--include/u-boot/crc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h
index 5174bd7ac41..b2badaf6a97 100644
--- a/include/u-boot/crc.h
+++ b/include/u-boot/crc.h
@@ -25,6 +25,9 @@
*/
unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len);
+void crc8_wd_buf(const unsigned char *input, unsigned int len,
+ unsigned char output[1], unsigned int chunk_sz);
+
/* lib/crc16.c - 16 bit CRC with polynomial x^16 + x^15 + x^2 + 1 */
uint16_t crc16(uint16_t crc, const unsigned char *buffer, size_t len);