diff options
Diffstat (limited to 'crypto/md4')
-rw-r--r-- | crypto/md4/md4.h | 6 | ||||
-rw-r--r-- | crypto/md4/md4_dgst.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/crypto/md4/md4.h b/crypto/md4/md4.h index 8a9326d994..7a7b23682f 100644 --- a/crypto/md4/md4.h +++ b/crypto/md4/md4.h @@ -104,9 +104,9 @@ typedef struct MD4state_st int num; } MD4_CTX; -void MD4_Init(MD4_CTX *c); -void MD4_Update(MD4_CTX *c, const void *data, unsigned long len); -void MD4_Final(unsigned char *md, MD4_CTX *c); +int MD4_Init(MD4_CTX *c); +int MD4_Update(MD4_CTX *c, const void *data, unsigned long len); +int MD4_Final(unsigned char *md, MD4_CTX *c); unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md); void MD4_Transform(MD4_CTX *c, const unsigned char *b); #ifdef __cplusplus diff --git a/crypto/md4/md4_dgst.c b/crypto/md4/md4_dgst.c index 81488ae2e2..6446f5f5e7 100644 --- a/crypto/md4/md4_dgst.c +++ b/crypto/md4/md4_dgst.c @@ -70,7 +70,7 @@ const char *MD4_version="MD4" OPENSSL_VERSION_PTEXT; #define INIT_DATA_C (unsigned long)0x98badcfeL #define INIT_DATA_D (unsigned long)0x10325476L -void MD4_Init(MD4_CTX *c) +int MD4_Init(MD4_CTX *c) { c->A=INIT_DATA_A; c->B=INIT_DATA_B; @@ -79,6 +79,7 @@ void MD4_Init(MD4_CTX *c) c->Nl=0; c->Nh=0; c->num=0; + return 1; } #ifndef md4_block_host_order |