summaryrefslogtreecommitdiff
path: root/src/hash/sha1/openssl.h
Commit message (Collapse)AuthorAgeFilesLines
* hash: move SHA1 implementations to its own hashing contextPatrick Steinhardt2019-06-241-4/+2
| | | | | | | | | Create a separate `git_hash_sha1_ctx` structure that is specific to the SHA1 implementation and move all SHA1 functions over to use that one instead of the generic `git_hash_ctx`. The `git_hash_ctx` for now simply has a union containing this single SHA1 implementation, only, without any mechanism to distinguish between different algortihms.
* hash: move SHA1 implementations into 'sha1/' folderPatrick Steinhardt2019-06-241-0/+21
As we will include additional hash algorithms in the future due to upstream git discussing a move away from SHA1, we should accomodate for that and prepare for the move. As a first step, move all SHA1 implementations into a common subdirectory. Also, create a SHA1-specific header file that lives inside the hash folder. This header will contain the SHA1-specific header includes, function declarations and the SHA1 context structure.