1 /* RIPEMD160DRIVER.C - test driver for RIPEMD160
7 /* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
10 RSA Data Security, Inc. makes no representations concerning either
11 the merchantability of this software or the suitability of this
12 software for any particular purpose. It is provided "as is"
13 without express or implied warranty of any kind.
15 These notices must be retained in any copies of any part of this
16 documentation and/or software.
19 #include <sys/types.h>
26 /* Digests a string and prints the result.
28 static void RIPEMD160String (string)
33 printf ("RIPEMD160 (\"%s\") = %s\n",
34 string, RIPEMD160_Data(string,strlen(string),buf));
37 /* Digests a reference suite of strings and prints the results.
41 printf ("RIPEMD160 test suite:\n");
44 RIPEMD160String ("abc");
45 RIPEMD160String ("message digest");
46 RIPEMD160String ("abcdefghijklmnopqrstuvwxyz");
48 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
50 ("1234567890123456789012345678901234567890\
51 1234567890123456789012345678901234567890");