aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-29add tests/benchPaul Duncan7-0/+354
2024-04-29add rand-bytes.hPaul Duncan1-0/+20
2024-04-29Makefile: add -march=native -mtune=native to TEST_CFLAGSPaul Duncan1-1/+1
2024-04-29sha3.c: use shared RCS, rename scalar and avx512 permute() to ↵Paul Duncan1-78/+547
permute_{scalar,axv512}(), hard-code num_rounds to 24 in permute_{scalar,avx512}(), add permute12_{scalar,avx512}(), absorb12(), and xof12_{init,absorb,raw,absorb,squeeze_raw,squeeze,once}(), update turboshake to use xof12_*(), move permute tests to PERMUTE_TESTS static array, rename test_permute() to test_permute_scalar(), add test_permute_avx512(), add PERMUTE12_TESTS and test_permute12_{scalar,avx512}()
2024-03-02LICENSE.txt: update copyright yearPaul Duncan1-1/+1
2024-03-02README.md: move hmac down in list of algorithms, add note about recommended ↵v0.6Paul Duncan1-1/+4
compiler flags
2024-03-02sha3.c: add fail_test(), use it in all testsPaul Duncan1-211/+67
2024-03-02sha3.c: rename HASH_RATE() to RATE(), document RATE() and use it everywhere, ↵Paul Duncan1-34/+71
improve comments
2024-03-02sha3.c: fix commentPaul Duncan1-1/+1
2024-03-02sha3.c: parameterize turboshakePaul Duncan1-50/+34
2024-03-02sha3.c: parameterize parallelhashPaul Duncan1-271/+143
2024-03-02sha3.c: use __func__ in testsPaul Duncan1-49/+49
2024-03-02sha3.c: parameterize tuplehashPaul Duncan1-121/+68
2024-03-02sha3.c: parameterize kmac functionsPaul Duncan1-235/+122
2024-03-02sha3.c: move kmac128(), add missing kmac commentsPaul Duncan1-53/+63
2024-03-02sha3.c: parameterize cshakePaul Duncan1-158/+86
2024-03-02sha3.c: parameterize rate handling, simplify hash, shake, hmac, and cshake ↵Paul Duncan1-72/+58
definitions
2024-03-02sha3.c: remove keccak(), refactor xof_absorb_raw() into absorb(), update ↵Paul Duncan1-92/+54
hash_once(), hash_absorb(), and xof_absorb_raw() to use absorb()
2024-03-02sha3.h: move shake prototypes above hmacPaul Duncan1-181/+182
2024-03-02sha3.h: s/calculat/calculate/Paul Duncan1-1/+1
2024-03-02sha3.[hc]: update commentsPaul Duncan2-3/+5
2024-03-02sha3.c: move hmac below shakePaul Duncan1-71/+71
2024-03-02sha3.c: add DEF_HASH(), DEF_HMAC(), and DEF_SHAKE(), remove explicit hash, ↵Paul Duncan1-376/+137
hmac, and shake implementations
2024-03-02sha3.c: xof_absorb_raw_large(): rename to xof_absorb_raw(), do not copy ↵Paul Duncan1-61/+11
state, check message alignment to elide unnecessary copies, remove xof_absorb_raw_small()
2024-02-26rename SHA3_*_CAPACITY to SHA3_*_LEN, document SHA3_*_LEN and ↵Paul Duncan1-28/+47
{SHA3,SHAKE*}_*_RATE
2024-02-24sha3.c: s/sha3(/hash_once(/, s/sha3_(init|absorb|final)/hash_$1/Paul Duncan1-21/+21
2024-02-24sha3.c: improve internal documentationPaul Duncan1-1/+29
2024-02-24sha3.c: s/xof_absorb_raw_bulk/xof_absorb_raw_large/, ↵Paul Duncan1-10/+18
s/xof_absorb_raw_simple/xof_absorb_raw_small/, add documentation to xof absorb functions
2024-02-24sha3.c: xof_squeeze_raw(): improve speed by squeezing in rate-sized chunksPaul Duncan1-6/+36
2024-02-24sha3.c: add xof_absorb_raw_bulk() to absorb data in bulkPaul Duncan1-6/+99
2024-02-24sha3.h: remove duplicate shake group definition, move sha3_xof_t definition ↵Paul Duncan1-25/+13
to first use
2024-02-24sha3.h: fix copyright yearPaul Duncan1-1/+1
2024-02-24sha3.h: fix a couple XOF linksPaul Duncan1-4/+4
2024-02-24sha3.c: remove unused shake() functionPaul Duncan1-22/+0
2024-02-24sha3.h: fix shake group descriptionPaul Duncan1-4/+3
2024-02-24README.md: add missing "the"Paul Duncan1-1/+1
2024-02-24README.md: add more references to cavpPaul Duncan1-4/+4
2024-02-24README.md: update examples, add cavp referencesPaul Duncan1-14/+23
2024-02-24tests/cavp-tests/main.c: regeneratePaul Duncan1-50/+52
2024-02-24tests/cavp-tests/gen-main.rb: update to reflect shake prototype changes, ↵Paul Duncan1-4/+5
minor fixes
2024-02-24examples: update examples for new shake{128,256} prototypesPaul Duncan3-80/+44
2024-02-24sha3.h: update shake256 example referencesPaul Duncan1-3/+3
2024-02-24sha3.h: revert cshake{128,256} prototype changesPaul Duncan1-9/+9
2024-02-24main.c: replace shake{128,256}_xof references with shake{128,256}Paul Duncan1-19/+15
2024-02-24sha3.[hc]: remove shake{128,256}(), replace shake{128,256}_xof prefixes with ↵Paul Duncan2-337/+76
shake{128,256}, update tests
2024-02-24README.md: README.md: remove references to shake{128,256}-xofPaul Duncan1-4/+2
2024-02-24add tests/cavp-testsPaul Duncan9-199/+39399
2024-02-23add tests/gen-shake-tests.rbPaul Duncan1-0/+199
2024-02-23sha3.c: add xof_{absorb,squeeze}_raw()Paul Duncan1-15/+29
2024-02-23sha3.c: use temp array for pi() and chi(), fix testsPaul Duncan1-65/+67