18#define SHA256_BLOCK_SIZE 32
void sha256_final(SHA256_CTX *ctx, BYTE hash[])
Definition sha256.c:115
uint8_t BYTE
Definition sha256.h:21
void sha256_update(SHA256_CTX *ctx, const BYTE data[], size_t len)
Definition sha256.c:100
uint32_t WORD
Definition sha256.h:22
void CRYPT_compute_sha256_hash(const uint8_t message[], size_t message_length, uint8_t hash[32])
Computes the SHA256 hash of the message and stores the 32 byte hash at hash.
Definition sha256.c:166
void sha256_init(SHA256_CTX *ctx)
Definition sha256.c:86
WORD state[8]
Definition sha256.h:28
unsigned long long bitlen
Definition sha256.h:27
BYTE data[64]
Definition sha256.h:25
WORD datalen
Definition sha256.h:26