Skip to content
Snippets Groups Projects
Commit 7840b46e authored by Niels Möller's avatar Niels Möller
Browse files

(test_main): New test case, with a

very large sha1 input.

Rev: src/nettle/testsuite/sha1-huge-test.c:1.1
parent 96e96fe1
No related branches found
No related tags found
No related merge requests found
#include "testutils.h"
#include "sha.h"
int
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',
H("0ba79364dc64648f 2074fb4bc5c28bcf"
"b7a787b0"));
SUCCESS();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment