18#define SHA256_BLOCK_SIZE 64
uint64_t u64
Definition: common.h:24
uint8_t u8
Definition: common.h:27
uint32_t u32
Definition: common.h:25
int sha256_done(struct sha256_state *md, unsigned char *out)
Terminate the hash to get the digest.
Definition: sha256-internal.c:190
#define SHA256_BLOCK_SIZE
Definition: sha256_i.h:18
void sha256_init(struct sha256_state *md)
Definition: sha256-internal.c:129
int sha256_process(struct sha256_state *md, const unsigned char *in, unsigned long inlen)
Process a block of memory though the hash.
Definition: sha256-internal.c:150
Definition: sha256_i.h:20
u32 curlen
Definition: sha256_i.h:22
u32 state[8]
Definition: sha256_i.h:22
u8 buf[SHA256_BLOCK_SIZE]
Definition: sha256_i.h:23
u64 length
Definition: sha256_i.h:21