From 9c45d9ad13fdf439d44d7443ae75da15ea0223ed Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 19 Aug 2013 16:39:41 -0400 Subject: Initial checkin Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy. --- sha1/testsuite.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 sha1/testsuite.c (limited to 'sha1/testsuite.c') diff --git a/sha1/testsuite.c b/sha1/testsuite.c new file mode 100644 index 0000000..4de568e --- /dev/null +++ b/sha1/testsuite.c @@ -0,0 +1,96 @@ +/* +** Copyright 2001-2005 Double Precision, Inc. +** See COPYING for distribution information. +*/ + +#include "config.h" +#include "sha1.h" +#include +#include +#include + + +static char foo[1000001]; + +static void sha1() +{ +SHA1_DIGEST digest; +unsigned i, n; + +static char *testcases[]={"abc", +"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", foo}; + + for (n=0; n