Go to the documentation of this file.
66 int main(
int argc,
char *argv[])
68 printf(
"No MD2 support\n");
73 #include <openssl/md2.h>
84 "abcdefghijklmnopqrstuvwxyz",
85 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
86 "12345678901234567890123456789012345678901234567890123456789012345678901234567890",
91 "8350e5a3e24c153df2275c9f80692773",
92 "32ec01ec4a6dac72c0ab96fb34c0b5d1",
93 "da853b0d3f88d99b30283a69e6ded6bb",
94 "ab4f496bfb2a530b219ff33031fe06b0",
95 "4e8ddff3650292ab5a4108c3aa47940b",
96 "da33def2a42df13975352846c30338cd",
97 "d5976f79d83d3a0dc9806c3c66f3efd8",
100 static char *
pt(
unsigned char *md);
101 int main(
int argc,
char *argv[])
115 if (strcmp(p,*R) != 0)
117 printf(
"error calculating MD2 on '%s'\n",*P);
118 printf(
"got %s instead of %s\n",p,*R);
122 printf(
"test %d ok\n",i);
127 #ifdef OPENSSL_SYS_NETWARE
128 if (err) printf(
"ERROR: %d\n", err);
134 static char *
pt(
unsigned char *md)
140 sprintf(&(buf[i*2]),
"%02x",md[i]);