aboutsummaryrefslogtreecommitdiff
path: root/halfsiphash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite code, but keeping the exact same semantic and behaviourHEADmainEuAndreh2025-06-041-166/+0
| | | | | | | | | | - assert that the generated `siphash.o` code is identical to the original code, available at `tests/assert-identical.sh`; - remove unneeded `#define`s; - rewrite code with the correct indentation, spacing and formatting; - use C99 constructs over C89 (for loop variable declarations inside the parentheses); - fix the public API.
* commentsJP Aumasson2022-10-221-0/+8
|
* Merge branch 'master' into rename-debug-symbolJean-Philippe Aumasson2022-07-281-1/+4
|\
| * only include stdio when usedNihal Jere2022-01-121-1/+2
| |
* | Rename `DEBUG` to `DEBUG_SIPHASH`Jens Alfke2021-11-111-1/+1
|/ | | | | | | | | | | | `DEBUG` is too generic a name to use for a flag that causes SipHash to log to the console on every hash operation; changed it to `DEBUG_SIPHASH`. An example: Xcode's project templates have a `-DDEBUG=1` Clang flag in the 'Debug' config, so nearly every iOS and macOS app defines DEBUG in dev builds! When I (@snej) added SipHash to my Mac project, I started getting huge amounts of console logs until I found and renamed its `#ifdef DEBUG`.
* halfsh header, cleanupJP Aumasson2021-10-311-2/+1
|
* -Wimplicit-fallthrough=4 compliancePřemysl Eric Janouch2021-10-131-0/+2
|
* constsJP Aumasson2021-03-121-3/+3
|
* typechangeJP Aumasson2021-02-201-10/+13
|
* testsJP Aumasson2021-02-191-6/+6
|
* Merge pull request #17 from altendky/format_specifiersJean-Philippe Aumasson2019-09-141-4/+5
|\ | | | | Use size_t and fixed width format specifiers for printf()
| * Use size_t and fixed with format specifiers for printf()Kyle Altendorf2019-09-131-4/+5
| |
* | Make *c* and *d* rounds less intrusively configurableKyle Altendorf2019-09-101-2/+6
|/
* Merge pull request #13 from altendky/use_UINTxx_C_macrosJean-Philippe Aumasson2019-09-101-2/+2
|\ | | | | Use UINTxx_C() macros for 'large' constants
| * Use UINTxx_C() macros for 'large' constantsKyle Altendorf2019-09-091-2/+2
| |
* | Remove duplicated U32TO8_LE() macro definitionKyle Altendorf2019-09-091-6/+0
|/
* halfsiphash: 4 byte chunks, not 8, so compute leftover correctlyJason A. Donenfeld2016-12-211-1/+1
|
* autogen vectors, tweaked hsiphashJP Aumasson2016-12-171-56/+58
|
* chaskey constantsJP Aumasson2016-12-161-3/+3
|
* bugfixJP Aumasson2016-12-161-1/+1
|
* readmeJP Aumasson2016-12-161-0/+150