diff options
Diffstat (limited to 'sha1.h')
-rw-r--r-- | sha1.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -8,7 +8,8 @@ #ifndef SHA1_H #define SHA1_H -typedef struct { +typedef struct +{ unsigned long long size; unsigned int H[5]; unsigned int W[16]; @@ -19,10 +20,10 @@ void blk_SHA1_Update(blk_SHA_CTX *ctx, const void *dataIn, unsigned long len); void blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx); /* Make us use the standard names */ -#define SHA_CTX blk_SHA_CTX -#define SHA1_Init blk_SHA1_Init -#define SHA1_Update blk_SHA1_Update -#define SHA1_Final blk_SHA1_Final +#define SHA_CTX blk_SHA_CTX +#define SHA1_Init blk_SHA1_Init +#define SHA1_Update blk_SHA1_Update +#define SHA1_Final blk_SHA1_Final /* Trivial helper function */ static inline void SHA1(const void *dataIn, unsigned long len, unsigned char hashout[20]) |