X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fsha1.h;h=734d1fb153dc7d448e7f08e9e54f44e033b184bc;hb=b9750264019c2bbcc67db5631734f7ad765ea7c2;hp=15ea13cd3a703e1be8653e11062e9c2dfaeb4271;hpb=375c2c9e57ea5b8d678475379378f4774aa9cb88;p=karo-tx-uboot.git diff --git a/include/sha1.h b/include/sha1.h index 15ea13cd3a..734d1fb153 100644 --- a/include/sha1.h +++ b/include/sha1.h @@ -79,6 +79,17 @@ void sha1_finish( sha1_context *ctx, unsigned char output[20] ); void sha1_csum( unsigned char *input, int ilen, unsigned char output[20] ); +/** + * \brief Output = SHA-1( input buffer ), with watchdog triggering + * + * \param input buffer holding the data + * \param ilen length of the input data + * \param output SHA-1 checksum result + * \param chunk_sz watchdog triggering period (in bytes of input processed) + */ +void sha1_csum_wd (unsigned char *input, int ilen, + unsigned char output[20], unsigned int chunk_sz); + /** * \brief Output = SHA-1( file contents ) *