diff options
Diffstat (limited to 'src/lib/libcrypto/ripemd/ripemd.h')
-rw-r--r-- | src/lib/libcrypto/ripemd/ripemd.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ripemd/ripemd.h b/src/lib/libcrypto/ripemd/ripemd.h index 7d0d998189..033a5965b5 100644 --- a/src/lib/libcrypto/ripemd/ripemd.h +++ b/src/lib/libcrypto/ripemd/ripemd.h | |||
@@ -60,6 +60,7 @@ | |||
60 | #define HEADER_RIPEMD_H | 60 | #define HEADER_RIPEMD_H |
61 | 61 | ||
62 | #include <openssl/e_os2.h> | 62 | #include <openssl/e_os2.h> |
63 | #include <stddef.h> | ||
63 | 64 | ||
64 | #ifdef __cplusplus | 65 | #ifdef __cplusplus |
65 | extern "C" { | 66 | extern "C" { |
@@ -87,16 +88,13 @@ typedef struct RIPEMD160state_st | |||
87 | RIPEMD160_LONG A,B,C,D,E; | 88 | RIPEMD160_LONG A,B,C,D,E; |
88 | RIPEMD160_LONG Nl,Nh; | 89 | RIPEMD160_LONG Nl,Nh; |
89 | RIPEMD160_LONG data[RIPEMD160_LBLOCK]; | 90 | RIPEMD160_LONG data[RIPEMD160_LBLOCK]; |
90 | int num; | 91 | unsigned int num; |
91 | } RIPEMD160_CTX; | 92 | } RIPEMD160_CTX; |
92 | 93 | ||
93 | #ifdef OPENSSL_FIPS | ||
94 | int private_RIPEMD160_Init(RIPEMD160_CTX *c); | ||
95 | #endif | ||
96 | int RIPEMD160_Init(RIPEMD160_CTX *c); | 94 | int RIPEMD160_Init(RIPEMD160_CTX *c); |
97 | int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len); | 95 | int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len); |
98 | int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); | 96 | int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); |
99 | unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, | 97 | unsigned char *RIPEMD160(const unsigned char *d, size_t n, |
100 | unsigned char *md); | 98 | unsigned char *md); |
101 | void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b); | 99 | void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b); |
102 | #ifdef __cplusplus | 100 | #ifdef __cplusplus |