aboutsummaryrefslogtreecommitdiff
path: root/siphash.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-22commentsJP Aumasson1-1/+9
2022-10-22duallicenseJP Aumasson3-0/+9
2022-08-17SipHash works on ESP8266 running FreeRTOS. So Update the README on OS supportDev1-1/+1
2022-07-28debug symbol fixJP Aumasson1-1/+1
2022-01-20fix typo: clarify -> clarityNihal Jere1-1/+1
2022-01-12only include stdio when usedNihal Jere2-2/+4
2021-11-11Rename `DEBUG` to `DEBUG_SIPHASH`Jens Alfke2-2/+2
`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`.
2021-10-31httpsJP Aumasson1-1/+1
2021-10-31halfsh header, cleanupJP Aumasson1-2/+1
2021-10-13-Wimplicit-fallthrough=4 compliancePřemysl Eric Janouch2-0/+8
2021-06-06Fix link to hash-flooding DOS attack slidesMax Davitt1-1/+1
2021-03-12constsJP Aumasson2-6/+6
2021-02-20typechangeJP Aumasson6-31/+36
2021-02-19testsJP Aumasson7-728/+2726
2021-02-19halfsiphash header + badgeJP Aumasson4-3/+29
2021-01-19fixesJP Aumasson2-59/+62
2021-01-19headerJP Aumasson2-62/+83
2021-01-11ignore binsJP Aumasson1-0/+5
2021-01-11formattingJean-Philippe Aumasson1-3/+3
2021-01-11readmeJP Aumasson3-42/+72
2019-12-15Added some common IDE folders to gitignoreJose Fernando Lopez Fernandez1-0/+5
2019-09-22Initialize any_failedKyle Altendorf1-1/+1
oops
2019-09-21Separate test function and main()Kyle Altendorf3-2/+7
This allows for inclusion of the test function/file in a program with an existing main(). This is an isolated piece of #19.
2019-09-21Return non-zero when tests failKyle Altendorf1-1/+4
This allows for shell scripts to check for success or failure without parsing the printed output. If the function name is later changed from main() it will also allow other code calling the tests to also easily check the pass or fail status.
2019-09-18Correct \ alignmentKyle Altendorf1-4/+4
2019-09-18Use size_t and fixed width format specifiers for printf()... for siphash.cKyle Altendorf1-8/+5
It was forgotten in #17 to apply this to siphash.c as well as halfsiphash.c. Note that as-is this does change to a single 16-hex-char string for v0/1/2/3 in debug output rather than having 8 then a space then 8. If preferred it can be changed back to having the space and using `PRIx32` twice instead of `PRIx64` once.
2019-09-13Use size_t and fixed with format specifiers for printf()Kyle Altendorf1-4/+5
2019-09-10Make *c* and *d* rounds less intrusively configurableKyle Altendorf4-9/+32
2019-09-09Remove unneded #ifndef GETVECTORS checkKyle Altendorf1-2/+0
2019-09-09Avoid warnings about unused variable failsKyle Altendorf1-1/+6
test.c: In function ‘main’: test.c:49:9: warning: variable ‘fails’ set but not used [-Wunused-but-set-variable] int fails = 0; ^~~~~
2019-09-09Use UINTxx_C() macros for 'large' constantsKyle Altendorf2-6/+6
2019-09-09Remove duplicated U32TO8_LE() macro definitionKyle Altendorf1-6/+0
2017-02-24d/experimentalJP Aumasson1-3/+3
2017-01-05Update test vectors for HalfSipHashDmitry Chestnykh1-48/+48
PR #6 fixed an issue that requires generating new test vectors.
2016-12-21halfsiphash: 4 byte chunks, not 8, so compute leftover correctlyJason A. Donenfeld1-1/+1
2016-12-17autogen vectors, tweaked hsiphashJP Aumasson5-476/+1057
2016-12-16chaskey constantsJP Aumasson2-131/+132
2016-12-16bugfixJP Aumasson2-65/+65
2016-12-16experimentalJP Aumasson1-2/+2
2016-12-16readmeJP Aumasson7-417/+710
2016-02-29comments on 128b securityJP Aumasson1-0/+4
2016-01-20recover deleted filesJP Aumasson2-0/+232
2015-10-20reformatJP Aumasson3-303/+87
2014-11-19formattingJP Aumasson1-2/+2
2014-11-19detailsJP Aumasson1-9/+2
2014-11-19factored dbg tracesJP Aumasson1-30/+31
2014-11-09consistent typesJP Aumasson2-56/+48
2014-11-08typoJP Aumasson1-1/+1
2014-11-08experimental 128-bit modeJP Aumasson4-18/+145
2014-05-02ip statementJP Aumasson1-2/+5