]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/u-boot/sha256.h
4 #define SHA256_SUM_LEN 32
6 /* Reset watchdog each time we process this many bytes */
7 #define CHUNKSZ_SHA256 (64 * 1024)
15 void sha256_starts(sha256_context
* ctx
);
16 void sha256_update(sha256_context
*ctx
, const uint8_t *input
, uint32_t length
);
17 void sha256_finish(sha256_context
* ctx
, uint8_t digest
[SHA256_SUM_LEN
]);
19 void sha256_csum_wd(const unsigned char *input
, unsigned int ilen
,
20 unsigned char *output
, unsigned int chunk_sz
);
22 #endif /* _SHA256_H */