sha1-huge-test.c 359 Bytes
Newer Older
1 2
#include "testutils.h"

3
void
4 5 6 7 8 9
test_main(void)
{
  /* Hashes 10 000 000 x 30 000 bytes > 64 * 2^32. This overflows the
     low word of the block counter. This test vector is not cross
     checked with any other sha1 implementation. */
  test_hash_large(&nettle_sha1, 10000000, 30000, 'a',
10 11
		  SHEX("0ba79364dc64648f 2074fb4bc5c28bcf"
		       "b7a787b0"));
12
}