/* each test should take a buffer of random chars (size "size") and
 * run the specified hash on it asap.
 */
#include "hashbench.h"


/*
 * MD4
 */
#include "mdfour.h"
void test_mdfour(char *buf, int size) {

        struct mdfour md;
	char sum[16];
        unsigned chunk;
        
        mdfour_begin(&md);

	mdfour_update(&md, buf, size); 
        mdfour_update(&md, NULL, 0);
        mdfour_result(&md, sum);

}


/*
 * TIGER 
 * 
 */

typedef unsigned long long int word64;
typedef unsigned long word32;
void tiger(word64 *str, word64 length, word64 res[3]);
void test_tiger(char *buf, int size) {
  word64 res[3];
  tiger( (word64*)buf , (word64)size, (word64*) &res );
}


/*
 * MD5
 *
 */
#include "md5.h"
void test_md5(char *buf, int size) {

  MD_CTX context;
  unsigned char digest[16];

  MD5Init( &context );
  MD5Update( &context, buf , size );
  MD5Final(digest, &context);

}

