Link Here
|
17 |
typedef unsigned int uint32_t; |
17 |
typedef unsigned int uint32_t; |
18 |
typedef unsigned int u_int32_t; |
18 |
typedef unsigned int u_int32_t; |
19 |
typedef unsigned int u_int; |
19 |
typedef unsigned int u_int; |
20 |
|
|
|
21 |
#define __BEGIN_DECLS |
22 |
#define __END_DECLS |
23 |
#else |
24 |
#include <sys/cdefs.h> |
25 |
#endif |
20 |
#endif |
26 |
|
21 |
|
27 |
#define SHA1_DIGEST_LENGTH 20 |
22 |
#define SHA1_DIGEST_LENGTH 20 |
Link Here
|
33 |
u_char buffer[64]; |
28 |
u_char buffer[64]; |
34 |
} SHA1_CTX; |
29 |
} SHA1_CTX; |
35 |
|
30 |
|
36 |
__BEGIN_DECLS |
31 |
#ifdef __cplusplus |
|
|
32 |
extern "C" { |
33 |
#endif |
37 |
void SHA1Transform(uint32_t[5], const u_char[64]); |
34 |
void SHA1Transform(uint32_t[5], const u_char[64]); |
38 |
void SHA1Init(SHA1_CTX *); |
35 |
void SHA1Init(SHA1_CTX *); |
39 |
void SHA1Update(SHA1_CTX *, const u_char *, u_int); |
36 |
void SHA1Update(SHA1_CTX *, const u_char *, u_int); |
40 |
void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *); |
37 |
void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *); |
41 |
__END_DECLS |
38 |
#ifdef __cplusplus |
|
|
39 |
} |
40 |
#endif |
42 |
|
41 |
|
43 |
#endif /* _SYS_SHA1_H_ */ |
42 |
#endif /* _SYS_SHA1_H_ */ |