Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify endian handling in SHA-3. | jsing | 2024-11-23 | 1 | -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(). | jsing | 2023-04-16 | 1 | -2/+5 |
| | | | | While here, use KECCAK_BYTE_WIDTH instead of hardcoding the value. | ||||
* | Use size_t rather than int. | jsing | 2023-04-15 | 1 | -10/+8 |
| | | | | Also buy a vowel for rsiz. | ||||
* | Remove sha3() function, which will not be used or exposed. | jsing | 2023-04-15 | 1 | -13/+1 |
| | |||||
* | Mark sha3_keccakf() as static and remove prototype from header. | jsing | 2023-04-15 | 1 | -2/+2 |
| | |||||
* | Use memset() to zero the context, instead of zeroing manually. | jsing | 2023-04-15 | 1 | -5/+3 |
| | |||||
* | Use the same byte order tests as we do elsewhere in libcrypto. | jsing | 2023-04-15 | 1 | -3/+5 |
| | |||||
* | Rename SHA3 context struct field from 'st' to 'state'. | jsing | 2023-04-15 | 1 | -13/+13 |
| | |||||
* | Rename SHA3 context to align with existing code. | jsing | 2023-04-15 | 1 | -7/+7 |
| | |||||
* | Move some defines out of the sha3_internal.h header. | jsing | 2023-04-15 | 1 | -1/+5 |
| | |||||
* | Pull constant tables out of sha3_keccakf(). | jsing | 2023-04-15 | 1 | -24/+24 |
| | |||||
* | Strip and reformat comments. | jsing | 2023-04-15 | 1 | -28/+6 |
| | | | | | Remove various comments that are unhelpful or obvious. Reformat remaining comments per style(9). | ||||
* | Apply style(9) (first pass). | jsing | 2023-04-15 | 1 | -138/+144 |
| | |||||
* | Import sha3_internal.h. | jsing | 2023-04-15 | 1 | -2/+2 |
| | |||||
* | Add license to sha3 files. | jsing | 2023-04-15 | 1 | -0/+25 |
| | |||||
* | Import tiny_sha3 | jsing | 2023-04-15 | 1 | -0/+191 |
This is a minimal and readable SHA3 implementation. ok tb@ |