Home GnuPG

tests/hashtest: add hugeblock & disable-hwf options and 6 gig test vectors

Description

tests/hashtest: add hugeblock & disable-hwf options and 6 gig test vectors

* .gitignore: Add 'tests/hashtest-6g'.
* configure.ac: Add 'tests/hashtest-6g'.
* tests/Makefile: Add 'hashtest-6g'.
* tests/hashtest-6g.in: New.
* tests/hashtest-256g.in: Add SHA3-512 to algos.
* tests/hashtest.c (use_hugeblock): New.
(testvectors): Add 256 GiB test vectors for BLAKE2S, BLAKE2B and
whirlpool; Add 6 GiB test vectors for SHA1, SHA256, SHA512, SHA3, SM3,
BLAKE2S, BLAKE2B, WHIRLPOOL, CRC32 and CRC24.
(run_longtest); Use huge 5 GiB pattern block when requested.
(main): Add '--hugeblock' and '--disable-hwf' options.
* tests/testdrv.c: Add 'hashtest-6g'; Add SHA3 to 'hashtest-256g'.
  • GnuPG-bug-id: T6217
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Sep 25 2022, 9:23 PM
Parents
rC9c828129b205: keccak: Use size_t to avoid integer overflow
Branches
Unknown
Tags
Unknown
Tasks
T6217: sha3: wrong results for large inputs