]>
Commit | Line | Data |
---|---|---|
5dddf7c8 | 1 | /* |
5e0de328 | 2 | * Copyright (C) 2009-2012 the libgit2 contributors |
5dddf7c8 | 3 | * |
bb742ede VM |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
5dddf7c8 AE |
6 | */ |
7 | ||
8 | typedef struct { | |
9 | unsigned long long size; | |
10 | unsigned int H[5]; | |
11 | unsigned int W[16]; | |
12 | } blk_SHA_CTX; | |
13 | ||
4386ee2a RJ |
14 | void git__blk_SHA1_Init(blk_SHA_CTX *ctx); |
15 | void git__blk_SHA1_Update(blk_SHA_CTX *ctx, const void *dataIn, unsigned long len); | |
16 | void git__blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx); | |
5dddf7c8 | 17 | |
38c513b9 | 18 | #define SHA_CTX blk_SHA_CTX |
4386ee2a RJ |
19 | #define SHA1_Init git__blk_SHA1_Init |
20 | #define SHA1_Update git__blk_SHA1_Update | |
21 | #define SHA1_Final git__blk_SHA1_Final |