forked from redis/redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,14 @@ By Steve Reid <[email protected]> | |
*/ | ||
|
||
typedef struct { | ||
u_int32_t state[5]; | ||
u_int32_t count[2]; | ||
uint32_t state[5]; | ||
uint32_t count[2]; | ||
unsigned char buffer[64]; | ||
} SHA1_CTX; | ||
|
||
void SHA1Transform(u_int32_t state[5], const unsigned char buffer[64]); | ||
void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]); | ||
void SHA1Init(SHA1_CTX* context); | ||
void SHA1Update(SHA1_CTX* context, const unsigned char* data, u_int32_t len); | ||
void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len); | ||
void SHA1Final(unsigned char digest[20], SHA1_CTX* context); | ||
|
||
#ifdef REDIS_TEST | ||
|