diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-06-14 14:22:19 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-06-24 18:33:22 +0200 |
| commit | fda206228f5df603a6fc3a81092e36850d4879b2 (patch) | |
| tree | ed7e46b134d5611d3441cd92acbc775908b4de4e /src/hash/sha1/generic.h | |
| parent | bd48bf3fb9368541bafda7877cf159f94884c187 (diff) | |
| download | libgit2-fda206228f5df603a6fc3a81092e36850d4879b2.tar.gz | |
hash: move SHA1 implementations into 'sha1/' folder
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.
Diffstat (limited to 'src/hash/sha1/generic.h')
| -rw-r--r-- | src/hash/sha1/generic.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/hash/sha1/generic.h b/src/hash/sha1/generic.h new file mode 100644 index 000000000..041b9ef68 --- /dev/null +++ b/src/hash/sha1/generic.h @@ -0,0 +1,19 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ + +#ifndef INCLUDE_hash_sha1_generic_h__ +#define INCLUDE_hash_sha1_generic_h__ + +#include "hash.h" + +struct git_hash_ctx { + unsigned long long size; + unsigned int H[5]; + unsigned int W[16]; +}; + +#endif |
