summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha3.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Simplify endian handling in SHA-3.jsing2024-11-231-26/+5
| | | | | | | | | | Rather than having blocks of code that are conditional on BYTE_ORDER != LITTLE_ENDIAN, use le64toh() and htole64() unconditionally. In the case of a little endian platform, the compiler will optimise this away, while on a big endian platform we'll either end up with better code or the same code than we have currently. ok tb@
* Bounds check mdlen that is passed to sha3_init().jsing2023-04-161-2/+5
| | | | While here, use KECCAK_BYTE_WIDTH instead of hardcoding the value.
* Use size_t rather than int.jsing2023-04-151-10/+8
| | | | Also buy a vowel for rsiz.
* Remove sha3() function, which will not be used or exposed.jsing2023-04-151-13/+1
|
* Mark sha3_keccakf() as static and remove prototype from header.jsing2023-04-151-2/+2
|
* Use memset() to zero the context, instead of zeroing manually.jsing2023-04-151-5/+3
|
* Use the same byte order tests as we do elsewhere in libcrypto.jsing2023-04-151-3/+5
|
* Rename SHA3 context struct field from 'st' to 'state'.jsing2023-04-151-13/+13
|
* Rename SHA3 context to align with existing code.jsing2023-04-151-7/+7
|
* Move some defines out of the sha3_internal.h header.jsing2023-04-151-1/+5
|
* Pull constant tables out of sha3_keccakf().jsing2023-04-151-24/+24
|
* Strip and reformat comments.jsing2023-04-151-28/+6
| | | | | Remove various comments that are unhelpful or obvious. Reformat remaining comments per style(9).
* Apply style(9) (first pass).jsing2023-04-151-138/+144
|
* Import sha3_internal.h.jsing2023-04-151-2/+2
|
* Add license to sha3 files.jsing2023-04-151-0/+25
|
* Import tiny_sha3jsing2023-04-151-0/+191
This is a minimal and readable SHA3 implementation. ok tb@