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.
29 lines
607 B
29 lines
607 B
//HEADER_GOES_HERE |
|
#ifndef __SHA_H__ |
|
#define __SHA_H__ |
|
|
|
DEVILUTION_BEGIN_NAMESPACE |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
#define SHA1HashSize 20 |
|
|
|
//sha |
|
|
|
void SHA1Clear(); |
|
void SHA1Result(int n, char Message_Digest[SHA1HashSize]); |
|
void SHA1Calculate(int n, const char *data, char Message_Digest[SHA1HashSize]); |
|
void SHA1Input(SHA1Context *context, const char *message_array, int len); |
|
void SHA1ProcessMessageBlock(SHA1Context *context); |
|
void SHA1Reset(int n); |
|
void SHA1Init(SHA1Context *context); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
DEVILUTION_END_NAMESPACE |
|
|
|
#endif /* __SHA_H__ */
|
|
|