You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
/* |
|
* UNPUBLISHED -- Rights reserved under the copyright laws of the |
|
* United States. Use of a copyright notice is precautionary only and |
|
* does not imply publication or disclosure. |
|
* |
|
* THIS DOCUMENTATION CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION |
|
* OF BLIZZARD ENTERTAINMENT. ANY DUPLICATION, MODIFICATION, |
|
* DISTRIBUTION, OR DISCLOSURE IS STRICTLY PROHIBITED WITHOUT THE PRIOR |
|
* EXPRESS WRITTEN PERMISSION OF BLIZZARD ENTERTAINMENT. |
|
*/ |
|
|
|
/* |
|
* Define the SHA1 circular left shift macro |
|
*/ |
|
#define SHA1CircularShift(bits,word) \ |
|
(((word) << (bits)) | ((word) >> (32-(bits)))) |
|
#define SHA1HashSize 20 |
|
|
|
//sha |
|
extern SHA1Context sgSHA1[3]; |
|
|
|
void __cdecl SHA1Clear(); |
|
void __fastcall SHA1Result(int n, char Message_Digest[SHA1HashSize]); |
|
void __fastcall SHA1Calculate(int n, const char *data, char Message_Digest[SHA1HashSize]); |
|
void __fastcall SHA1Input(SHA1Context *context, const char *message_array, int len); |
|
void __fastcall SHA1ProcessMessageBlock(SHA1Context *context); |
|
void __fastcall SHA1Reset(int n);
|
|
|