Go to the documentation of this file.
65 #ifdef OPENSSL_NO_RIPEMD
66 int main(
int argc,
char *argv[])
68 printf(
"No ripemd support\n");
84 "abcdefghijklmnopqrstuvwxyz",
85 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
86 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
87 "12345678901234567890123456789012345678901234567890123456789012345678901234567890",
92 "9c1185a5c5e9fc54612808977ee8f548b2258d31",
93 "0bdc9d2d256b3ee9daae347be6f4dc835a467ffe",
94 "8eb208f7e05d987a9b044a8e98c6b087f15a0bfc",
95 "5d0689ef49d2fae572b881b123a85ffa21595f36",
96 "f71c27109c692c1b56bbdceb5b9d2865b3708dbc",
97 "12a053384a9c0c88e405a06c27dcf49ada62eb2b",
98 "b0e20b6e3116640286ed3a87a5713079b21f5189",
99 "9b752e45573d4b39f4dbd3323cab82bf63326bfb",
102 static char *
pt(
unsigned char *md);
103 int main(
int argc,
char *argv[])
115 #ifdef CHARSET_EBCDIC
116 ebcdic2ascii((
char *)*P, (
char *)*P, strlen((
char *)*P));
120 if (strcmp(p,(
char *)*R) != 0)
122 printf(
"error calculating RIPEMD160 on '%s'\n",*P);
123 printf(
"got %s instead of %s\n",p,*R);
127 printf(
"test %d ok\n",i);
136 static char *
pt(
unsigned char *md)
142 sprintf(&(buf[i*2]),
"%02x",md[i]);