Skip to content

Instantly share code, notes, and snippets.

@TempleProgramming
TempleProgramming / SHA256.CC
Last active July 26, 2021 14:00
ZenithOS SHA-256 Generation
/* This implementation of SHA-256 was adapted from Brad Conte's
crypto-algorithms GitHub repository. */
#define SHA256_BLOCK_SIZE 32
class CSHA256_CTX
{
U8 data[64];
U32 datalen;
U64 bitlen;