#include <sys/types.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "skein.h"
#ifndef SKEIN
#define SKEIN 512
#endif
#if SKEIN == 256
#undef SKEIN_Data
#define SKEIN_Data SKEIN256_Data
#elif SKEIN == 512
#undef SKEIN_Data
#define SKEIN_Data SKEIN512_Data
#elif SKEIN == 1024
#undef SKEIN_Data
#define SKEIN_Data SKEIN1024_Data
#endif
static void
SKEINString(const char *string)
{
char buf[2*128 + 1];
printf("SKEIN%d (\"%s\") = %s\n",
SKEIN, string, SKEIN_Data(string, strlen(string), buf));
}
int
main(void)
{
printf("SKEIN%d test suite:\n", SKEIN);
SKEINString("");
SKEINString("abc");
SKEINString("message digest");
SKEINString("abcdefghijklmnopqrstuvwxyz");
SKEINString("ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz0123456789");
SKEINString("1234567890123456789012345678901234567890"
"1234567890123456789012345678901234567890");
return 0;
}