summaryrefslogtreecommitdiff
path: root/src/hash/hash_collisiondetect.h
Commit message (Collapse)AuthorAgeFilesLines
* git_error: use new names in internal APIs and usageEdward Thomson2019-01-221-1/+1
| | | | | Move to the `git_error` name in the internal API for error-related functions.
* hash: convert `global_init` macros to real functionPatrick Steinhardt2019-01-021-1/+5
| | | | | | | | | | | | | | | | | The `git_hash_global_init` function is simply defined as a macro to zero for most of the different hash implementations. This makes it impossible to treat it like a function pointer, which is required for a later commit where we want to improve the way global initialization works. Fix the issue by converting all no-op macros to an inline function returning zero. There's a small gotcha here, though: as most hash implementations only have a header file, but not a corresponding implementation file, we cannot declare the function as non-static. But declaring it as `static inline` fails, too, as there is a previous declaration as non-static. So we have to move the function declaration after the include that brings in the function definition, as it is allowed to have a non-static declaration after a static definition, but not the other way round.
* consistent header guardsethomson/header_guardsEdward Thomson2018-02-011-3/+3
| | | | use consistent names for the #include / #define header guard pattern.
* sha1dc: `SHA1DCUpdate` now takes a `size_t`ethomson/enfasten_sha1Edward Thomson2017-03-231-11/+1
|
* hash: include sha1collisiondetectionEdward Thomson2017-03-031-0/+57
Include the SHA1 collision attack detection library from https://github.com/cr-marcstevens/sha1collisiondetection