aboutsummaryrefslogtreecommitdiff
path: root/sha3.c
AgeCommit message (Collapse)AuthorFilesLines
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.[hc]: update commentsPaul Duncan1-2/+4
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.c: remove unused shake() functionPaul Duncan1-22/+0
2024-02-24sha3.[hc]: remove shake{128,256}(), replace shake{128,256}_xof prefixes with ↵Paul Duncan1-270/+58
shake{128,256}, update tests
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
2023-10-16sha3.c: clean up intro, remove extraneous newlinePaul Duncan1-10/+10
2023-10-14sha3.c: compress algorithm list in header comment block, mark entire file as ↵Paul Duncan1-19/+12
INTERNAL to doxygen
2023-09-23sha3.c: k12_big_absorb_done(): fix uninitialized buffer warningPaul Duncan1-1/+1
2023-09-18sha3.c: add avx512 permute(), add step comments, do not build scalar steps ↵Paul Duncan1-1/+257
unless necessary
2023-09-06sha3.[hc]: refactor k12 apiPaul Duncan1-84/+92
2023-09-06README.md, sha3.[hc]: add KangarooTwelve to algorithm listPaul Duncan1-0/+1
2023-09-06sha3.c: add kangarootwelve_custom(), kangarootwelve(), ↵Paul Duncan1-1/+501
kangarootwelve_length_encode(), test_kangarootwelve(), and test_kangarootwelve_length_encode()
2023-09-05sha3.[hc]: add turboshake{128,256}_custom()Paul Duncan1-1/+9
2023-09-05sha3.[hc]: s/TurboHash/TurboSHAKE/Paul Duncan1-1/+1
2023-09-05sha3.c: full turboshake{128,256} testsPaul Duncan1-19/+254
2023-09-05sha3.c: permute() pass correct round to iota() for turboshakePaul Duncan1-1/+1
2023-09-05sha3.c: add incomplete turboshake implementation, improve commentsPaul Duncan1-28/+157
2023-09-05sha3.[hc]: add header w/ spdx license identifier and library descriptionPaul Duncan1-3/+29
2023-09-04sha3.[hc]: add hmac_sha3_{224,256,384,512}(), ↵Paul Duncan1-2/+968
hmac_sha3_{224,256,384,512}_{init,absorb,final}(), test_hmac_sha3_{224,256,384,512}(), test_hmac_sha3_{224,256,384,512}_ctx()
2023-09-04sha3.[hc]: add sha3_{224,256,384,512}_{init,absorb,final}() and ↵Paul Duncan1-0/+662
test_sha3_{224,256,384,512}_ctx()
2023-09-04sha3.[hc]: add parallelhash256, ↵Paul Duncan1-0/+311
parallelhash256_xof_{init,absorb,squeeze,once}(), test_parallelhash256(), and test_parallelhash256_xof()
2023-09-04sha3.c: add missing parallelhash128 and parallelhash128-xof testsPaul Duncan1-0/+34
2023-09-04sha3.c: fix parallelhash128_xof_once() and test_parallelhash_xof()Paul Duncan1-2/+2
2023-09-04sha3.[hc]: add parallelhash128(), ↵Paul Duncan1-0/+265
parallelhash128_xof_{init,absorb,squeeze,once}(), test_parallelhash128(), and test_parallelhash128_xof() (the last one is currently not working)
2023-09-03sha3.c: add test_tuplehash{128,256}_xof()Paul Duncan1-2/+190
2023-09-03sha3.[hc]: add tuplehash256(), tuplehash256_xof_{init,squeeze,once}(), and ↵Paul Duncan1-0/+159
test_tuplehash256()
2023-09-03sha3.[hc]: add tuplehash128(), tuplehash128_xof_{init,squeeze,once}(), and ↵Paul Duncan1-0/+153
test_tuplehash128
2023-09-03sha3.[hc]: add kmac256_xof_{init,absorb,squeeze,once}() and test_kmac256_xof()Paul Duncan1-0/+181
2023-09-03sha3.[hc]: add kmac128_xof_{init,absorb,squeeze,once}(), test_kmac128_xof()Paul Duncan1-0/+161
2023-09-03sha3.c: add kmac256() and test_kmac256()Paul Duncan1-0/+178