diff options
Diffstat (limited to 'src/lib/libcrypto/ripemd/rmd_dgst.c')
-rw-r--r-- | src/lib/libcrypto/ripemd/rmd_dgst.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/libcrypto/ripemd/rmd_dgst.c b/src/lib/libcrypto/ripemd/rmd_dgst.c index a845e17ed8..2097a66c03 100644 --- a/src/lib/libcrypto/ripemd/rmd_dgst.c +++ b/src/lib/libcrypto/ripemd/rmd_dgst.c | |||
@@ -59,11 +59,6 @@ | |||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "rmd_locl.h" | 60 | #include "rmd_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 RMD160_version[]="RIPE-MD160" OPENSSL_VERSION_PTEXT; | 63 | const char RMD160_version[]="RIPE-MD160" OPENSSL_VERSION_PTEXT; |
69 | 64 | ||
@@ -74,16 +69,14 @@ const char RMD160_version[]="RIPE-MD160" OPENSSL_VERSION_PTEXT; | |||
74 | void ripemd160_block(RIPEMD160_CTX *c, unsigned long *p,size_t num); | 69 | void ripemd160_block(RIPEMD160_CTX *c, unsigned long *p,size_t num); |
75 | # endif | 70 | # endif |
76 | 71 | ||
77 | FIPS_NON_FIPS_MD_Init(RIPEMD160) | 72 | int RIPEMD160_Init(RIPEMD160_CTX *c) |
78 | { | 73 | { |
74 | memset (c,0,sizeof(*c)); | ||
79 | c->A=RIPEMD160_A; | 75 | c->A=RIPEMD160_A; |
80 | c->B=RIPEMD160_B; | 76 | c->B=RIPEMD160_B; |
81 | c->C=RIPEMD160_C; | 77 | c->C=RIPEMD160_C; |
82 | c->D=RIPEMD160_D; | 78 | c->D=RIPEMD160_D; |
83 | c->E=RIPEMD160_E; | 79 | c->E=RIPEMD160_E; |
84 | c->Nl=0; | ||
85 | c->Nh=0; | ||
86 | c->num=0; | ||
87 | return 1; | 80 | return 1; |
88 | } | 81 | } |
89 | 82 | ||