#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/lib/libmd/rmddriver.c,v 1.3 2001/09/30 21:56:22 dillon Exp $");
#include <sys/types.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "ripemd.h"
static void RIPEMD160String (string)
char *string;
{
char buf[2*20+1];
printf ("RIPEMD160 (\"%s\") = %s\n",
string, RIPEMD160_Data(string,strlen(string),buf));
}
main()
{
printf ("RIPEMD160 test suite:\n");
RIPEMD160String ("");
RIPEMD160String ("abc");
RIPEMD160String ("message digest");
RIPEMD160String ("abcdefghijklmnopqrstuvwxyz");
RIPEMD160String
("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
RIPEMD160String
("1234567890123456789012345678901234567890\
1234567890123456789012345678901234567890");
return 0;
}