💾 Archived View for gemini.rmf-dev.com › repo › Vaati › JailWarden › files › 8e2f475ead7fe401c3c635d… captured on 2023-05-24 at 18:15:04. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

➡️ Next capture (2023-09-08)

-=-=-=-=-=-=-

0 /*

1 * This sha256 implementation is in the public domain

2 * and is provided AS IS, with NO WARRANTY.

3 */

4 #ifndef SHA256_H

5 #define SHA256_H

6

7 typedef struct {

8 unsigned char data[64];

9 unsigned int datalen;

10 unsigned long long bitlen;

11 unsigned int state[8];

12 } sha256_ctx;

13

14 void sha256_init(sha256_ctx *ctx);

15 void sha256_update(sha256_ctx *ctx, unsigned char* data, unsigned len);

16 void sha256_final(sha256_ctx *ctx, unsigned char* hash);

17 int sha256_file(char* path, unsigned char* buf);

18

19 #endif

20