|
|
|
|
@ -5,8 +5,8 @@
|
|
|
|
|
/*
|
|
|
|
|
* Define the SHA1 circular left shift macro |
|
|
|
|
*/ |
|
|
|
|
#define SHA1CircularShift(bits,word) \ |
|
|
|
|
(((word) << (bits)) | ((word) >> (32-(bits)))) |
|
|
|
|
#define SHA1CircularShift(bits, word) \ |
|
|
|
|
(((word) << (bits)) | ((word) >> (32 - (bits)))) |
|
|
|
|
#define SHA1HashSize 20 |
|
|
|
|
|
|
|
|
|
//sha
|
|
|
|
|
@ -18,5 +18,6 @@ void __fastcall SHA1Calculate(int n, const char *data, char Message_Digest[SHA1H
|
|
|
|
|
void __fastcall SHA1Input(SHA1Context *context, const char *message_array, int len); |
|
|
|
|
void __fastcall SHA1ProcessMessageBlock(SHA1Context *context); |
|
|
|
|
void __fastcall SHA1Reset(int n); |
|
|
|
|
void __fastcall SHA1Init(SHA1Context *context); |
|
|
|
|
|
|
|
|
|
#endif /* __SHA_H__ */ |
|
|
|
|
|