From 2e59f9740a29439df7c7a56cf0ae83dec3081d31 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 11 Aug 2014 13:49:21 -0400 Subject: initial import of debian version from mentors --- test/default/shorthash.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/default/shorthash.c (limited to 'test/default/shorthash.c') diff --git a/test/default/shorthash.c b/test/default/shorthash.c new file mode 100644 index 0000000..6f1d7f3 --- /dev/null +++ b/test/default/shorthash.c @@ -0,0 +1,23 @@ +#include + +#include "crypto_uint8.h" + +#define TEST_NAME "shorthash" +#include "cmptest.h" + +int main(void) +{ +#define MAXLEN 64 + crypto_uint8 in[MAXLEN], out[crypto_shorthash_BYTES], k[crypto_shorthash_KEYBYTES]; + size_t i,j; + + for( i = 0; i < crypto_shorthash_KEYBYTES; ++i ) k[i] = i; + + for(i=0;i