Staging
v0.5.1
swh:1:snp:c5feb7ee9221a3820c8879e85e8a18470c0b3afa
Raw File
Tip revision: 42e6fde5c28150206956ea4be490d886c4ecbd68 authored by Junio C Hamano on 22 September 2017, 05:49:24 UTC
Git 2.13.6
Tip revision: 42e6fde
sha1dc_git.h
/*
 * This code is included at the end of sha1dc/sha1.h with the
 * SHA1DC_CUSTOM_TRAILING_INCLUDE_SHA1_H macro.
 */

/*
 * Same as SHA1DCFinal, but convert collision attack case into a verbose die().
 */
void git_SHA1DCFinal(unsigned char [20], SHA1_CTX *);

/*
 * Same as SHA1DCUpdate, but adjust types to match git's usual interface.
 */
void git_SHA1DCUpdate(SHA1_CTX *ctx, const void *data, unsigned long len);

#define platform_SHA_CTX SHA1_CTX
#define platform_SHA1_Init SHA1DCInit
#define platform_SHA1_Update git_SHA1DCUpdate
#define platform_SHA1_Final git_SHA1DCFinal
back to top