Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/exploits/CVE-2017-13861/sha1.h
21463 views
1
/* ================ sha1.h ================ */
2
/*
3
SHA-1 in C
4
By Steve Reid <[email protected]>
5
100% Public Domain
6
*/
7
8
typedef struct {
9
u_int32_t state[5];
10
u_int32_t count[2];
11
unsigned char buffer[64];
12
} SHA1_CTX;
13
14
void SHA1Transform(u_int32_t state[5], const unsigned char buffer[64]);
15
void SHA1Init(SHA1_CTX* context);
16
void SHA1Update(SHA1_CTX* context, const unsigned char* data, u_int32_t len);
17
void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
18