diff options
Diffstat (limited to 'src/lib/libcrypto/md4')
-rw-r--r-- | src/lib/libcrypto/md4/md4.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/md4/md4_dgst.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/md4/md4.h b/src/lib/libcrypto/md4/md4.h index c3ed9b3f75..a55368a790 100644 --- a/src/lib/libcrypto/md4/md4.h +++ b/src/lib/libcrypto/md4/md4.h | |||
@@ -105,6 +105,9 @@ typedef struct MD4state_st | |||
105 | unsigned int num; | 105 | unsigned int num; |
106 | } MD4_CTX; | 106 | } MD4_CTX; |
107 | 107 | ||
108 | #ifdef OPENSSL_FIPS | ||
109 | int private_MD4_Init(MD4_CTX *c); | ||
110 | #endif | ||
108 | int MD4_Init(MD4_CTX *c); | 111 | int MD4_Init(MD4_CTX *c); |
109 | int MD4_Update(MD4_CTX *c, const void *data, size_t len); | 112 | int MD4_Update(MD4_CTX *c, const void *data, size_t len); |
110 | int MD4_Final(unsigned char *md, MD4_CTX *c); | 113 | int MD4_Final(unsigned char *md, MD4_CTX *c); |
diff --git a/src/lib/libcrypto/md4/md4_dgst.c b/src/lib/libcrypto/md4/md4_dgst.c index e0c42e8596..82c2cb2d98 100644 --- a/src/lib/libcrypto/md4/md4_dgst.c +++ b/src/lib/libcrypto/md4/md4_dgst.c | |||
@@ -57,8 +57,9 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "md4_locl.h" | ||
61 | #include <openssl/opensslv.h> | 60 | #include <openssl/opensslv.h> |
61 | #include <openssl/crypto.h> | ||
62 | #include "md4_locl.h" | ||
62 | 63 | ||
63 | const char MD4_version[]="MD4" OPENSSL_VERSION_PTEXT; | 64 | const char MD4_version[]="MD4" OPENSSL_VERSION_PTEXT; |
64 | 65 | ||
@@ -70,7 +71,7 @@ const char MD4_version[]="MD4" OPENSSL_VERSION_PTEXT; | |||
70 | #define INIT_DATA_C (unsigned long)0x98badcfeL | 71 | #define INIT_DATA_C (unsigned long)0x98badcfeL |
71 | #define INIT_DATA_D (unsigned long)0x10325476L | 72 | #define INIT_DATA_D (unsigned long)0x10325476L |
72 | 73 | ||
73 | int MD4_Init(MD4_CTX *c) | 74 | fips_md_init(MD4) |
74 | { | 75 | { |
75 | memset (c,0,sizeof(*c)); | 76 | memset (c,0,sizeof(*c)); |
76 | c->A=INIT_DATA_A; | 77 | c->A=INIT_DATA_A; |