diff options
Diffstat (limited to 'src/lib/libcrypto/md4/md4_dgst.c')
-rw-r--r-- | src/lib/libcrypto/md4/md4_dgst.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/libcrypto/md4/md4_dgst.c b/src/lib/libcrypto/md4/md4_dgst.c index 0f5448601d..e0c42e8596 100644 --- a/src/lib/libcrypto/md4/md4_dgst.c +++ b/src/lib/libcrypto/md4/md4_dgst.c | |||
@@ -59,11 +59,6 @@ | |||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "md4_locl.h" | 60 | #include "md4_locl.h" |
61 | #include <openssl/opensslv.h> | 61 | #include <openssl/opensslv.h> |
62 | #include <openssl/err.h> | ||
63 | #ifdef OPENSSL_FIPS | ||
64 | #include <openssl/fips.h> | ||
65 | #endif | ||
66 | |||
67 | 62 | ||
68 | const char MD4_version[]="MD4" OPENSSL_VERSION_PTEXT; | 63 | const char MD4_version[]="MD4" OPENSSL_VERSION_PTEXT; |
69 | 64 | ||
@@ -75,15 +70,13 @@ const char MD4_version[]="MD4" OPENSSL_VERSION_PTEXT; | |||
75 | #define INIT_DATA_C (unsigned long)0x98badcfeL | 70 | #define INIT_DATA_C (unsigned long)0x98badcfeL |
76 | #define INIT_DATA_D (unsigned long)0x10325476L | 71 | #define INIT_DATA_D (unsigned long)0x10325476L |
77 | 72 | ||
78 | FIPS_NON_FIPS_MD_Init(MD4) | 73 | int MD4_Init(MD4_CTX *c) |
79 | { | 74 | { |
75 | memset (c,0,sizeof(*c)); | ||
80 | c->A=INIT_DATA_A; | 76 | c->A=INIT_DATA_A; |
81 | c->B=INIT_DATA_B; | 77 | c->B=INIT_DATA_B; |
82 | c->C=INIT_DATA_C; | 78 | c->C=INIT_DATA_C; |
83 | c->D=INIT_DATA_D; | 79 | c->D=INIT_DATA_D; |
84 | c->Nl=0; | ||
85 | c->Nh=0; | ||
86 | c->num=0; | ||
87 | return 1; | 80 | return 1; |
88 | } | 81 | } |
89 | 82 | ||