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