4 #define SHA256_SUM_LEN 32
5 #define SHA256_DER_LEN 19
7 extern const uint8_t sha256_der_prefix[];
9 /* Reset watchdog each time we process this many bytes */
10 #define CHUNKSZ_SHA256 (64 * 1024)
18 void sha256_starts(sha256_context * ctx);
19 void sha256_update(sha256_context *ctx, const uint8_t *input, uint32_t length);
20 void sha256_finish(sha256_context * ctx, uint8_t digest[SHA256_SUM_LEN]);
22 void sha256_csum_wd(const unsigned char *input, unsigned int ilen,
23 unsigned char *output, unsigned int chunk_sz);
25 #endif /* _SHA256_H */