1 #ifndef _RAR_SHA256_ 2 #define _RAR_SHA256_ 3 4 #define SHA256_DIGEST_SIZE 32 5 6 typedef struct 7 { 8 uint32 H[8]; 9 uint64 Count; 10 byte Buffer[64]; 11 } sha256_context; 12 13 void sha256_init(sha256_context *ctx); 14 void sha256_process(sha256_context *ctx, const void *Data, size_t Size); 15 void sha256_done(sha256_context *ctx, byte *Digest); 16 17 #endif 18