Add support for calculating hashes with watchdog triggering
Implement watchodg-aware variants of hash calculation functions:
- crc32_wd()
- md5_wd()
- sha1_csum_wd()
The above functions calculate the hash of the input buffer in chunks,
triggering the watchdog after processing each chunk. The chunk size
is given as a function call parameter.
Signed-off-by:
Bartlomiej Sieka <tur@semihalf.com>
Showing
- include/common.h 1 addition, 0 deletionsinclude/common.h
- include/sha1.h 11 additions, 0 deletionsinclude/sha1.h
- include/u-boot/md5.h 8 additions, 0 deletionsinclude/u-boot/md5.h
- lib_generic/crc32.c 27 additions, 0 deletionslib_generic/crc32.c
- lib_generic/md5.c 36 additions, 0 deletionslib_generic/md5.c
- lib_generic/sha1.c 33 additions, 0 deletionslib_generic/sha1.c
Loading
Please register or sign in to comment