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/sha1dc_git.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 / sha1dc_git.h` 27 lines ยท 716 bytes Raw Blame History 1 /* Plumbing with collition-detecting SHA1 code */ 2 3 #ifdef DC_SHA1_EXTERNAL 4 #include 5 #elif defined(DC_SHA1_SUBMODULE) 6 #include "sha1collisiondetection/lib/sha1.h" 7 #else 8 #include "sha1dc/sha1.h" 9 #endif 10 11 #ifdef DC_SHA1_EXTERNAL 12 void git_SHA1DCInit(SHA1_CTX *); 13 #else 14 #define git_SHA1DCInit SHA1DCInit 15 #endif 16 17 void git_SHA1DCFinal(unsigned char [20], SHA1_CTX *); 18 void git_SHA1DCUpdate(SHA1_CTX *ctx, const void *data, size_t len); 19 20 #define platform_SHA_IS_SHA1DC /* used by "test-tool sha1-is-sha1dc" */ 21 22 #ifndef platform_SHA_CTX 23 #define platform_SHA_CTX SHA1_CTX 24 #define platform_SHA1_Init git_SHA1DCInit 25 #define platform_SHA1_Update git_SHA1DCUpdate 26 #define platform_SHA1_Final git_SHA1DCFinal 27 #endif