Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/sha256/block/sha256.h # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / sha256 / block / sha256.h` 24 lines ยท 633 bytes Raw Blame History 1 #ifndef SHA256_BLOCK_SHA256_H 2 #define SHA256_BLOCK_SHA256_H 3 4 #define blk_SHA256_BLKSIZE 64 5 6 struct blk_SHA256_CTX { 7 uint32_t state[8]; 8 uint64_t size; 9 uint32_t offset; 10 uint8_t buf[blk_SHA256_BLKSIZE]; 11 }; 12 13 typedef struct blk_SHA256_CTX blk_SHA256_CTX; 14 15 void blk_SHA256_Init(blk_SHA256_CTX *ctx); 16 void blk_SHA256_Update(blk_SHA256_CTX *ctx, const void *data, size_t len); 17 void blk_SHA256_Final(unsigned char *digest, blk_SHA256_CTX *ctx); 18 19 #define platform_SHA256_CTX blk_SHA256_CTX 20 #define platform_SHA256_Init blk_SHA256_Init 21 #define platform_SHA256_Update blk_SHA256_Update 22 #define platform_SHA256_Final blk_SHA256_Final 23 24 #endif