summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mdc2/mdc2dgst.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/mdc2/mdc2dgst.c')
-rw-r--r--src/lib/libcrypto/mdc2/mdc2dgst.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/lib/libcrypto/mdc2/mdc2dgst.c b/src/lib/libcrypto/mdc2/mdc2dgst.c
index 302f9ab9a8..d6ce1451a1 100644
--- a/src/lib/libcrypto/mdc2/mdc2dgst.c
+++ b/src/lib/libcrypto/mdc2/mdc2dgst.c
@@ -177,24 +177,3 @@ int MDC2_Final(unsigned char *md, MDC2_CTX *c)
177 memcpy(&(md[MDC2_BLOCK]),(char *)c->hh,MDC2_BLOCK); 177 memcpy(&(md[MDC2_BLOCK]),(char *)c->hh,MDC2_BLOCK);
178 return 1; 178 return 1;
179 } 179 }
180
181#undef TEST
182
183#ifdef TEST
184main()
185 {
186 unsigned char md[MDC2_DIGEST_LENGTH];
187 int i;
188 MDC2_CTX c;
189 static char *text="Now is the time for all ";
190
191 MDC2_Init(&c);
192 MDC2_Update(&c,text,strlen(text));
193 MDC2_Final(&(md[0]),&c);
194
195 for (i=0; i<MDC2_DIGEST_LENGTH; i++)
196 printf("%02X",md[i]);
197 printf("\n");
198 }
199
200#endif