16 #define SHA256_BLOCK_SIZE 32 // SHA256 outputs a 32 byte digest
19 typedef unsigned char BYTE;
20 typedef unsigned int WORD;
25 unsigned long long bitlen;
31 void sha256_update(
SHA256_CTX *ctx,
const BYTE data[],
size_t len);
32 void sha256_final(
SHA256_CTX *ctx, BYTE hash[]);