2 * SHA1 routine optimized to do word accesses rather than byte accesses,
3 * and to avoid unnecessary copies into the context array.
5 * This was initially based on the Mozilla SHA1 implementation, although
6 * none of the original Mozilla code remains.
10 unsigned long long size;
15 void blk_SHA1_Init(blk_SHA_CTX *ctx);
16 void blk_SHA1_Update(blk_SHA_CTX *ctx, const void *dataIn, unsigned long len);
17 void blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx);
19 #define platform_SHA_CTX blk_SHA_CTX
20 #define platform_SHA1_Init blk_SHA1_Init
21 #define platform_SHA1_Update blk_SHA1_Update
22 #define platform_SHA1_Final blk_SHA1_Final