aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/siphash
Commit message (Collapse)AuthorAgeFilesLines
* core/crypto: Change hash asserts to panicsYawning Angel2023-11-171-18/+10
| | | | | | | | | | Assertions can be disabled, but at the point where cryptographic anything is involved, a single branch has an infinitesimally small performance impact. The correct thing to do is to punch the caller in the face if they do something that is blatantly incorrect, especially in a security critical setting.
* core/crypto/siphash: Fix the low-level APIYawning Angel2023-11-171-27/+51
| | | | | | The `update` and `final` routines were written with the assumption that update will only be called once, and that the underlying data does not change between the calls.
* core/crypto/siphash: CleanupsYawning Angel2023-11-171-16/+15
| | | | | | | - Use `encoding/endian` - Use `math/bits` - Add `@(private)` annotations to internals - Minor optimization
* core/crypto/siphash: odinfmt (NFC)Yawning Angel2023-11-171-175/+188
|
* fix some typoscui fliter2022-08-051-1/+1
| | | | Signed-off-by: cui fliter <imcusg@gmail.com>
* [crypto] Remove unused `mem` import for siphash.Jeroen van Rijn2022-03-081-1/+0
|
* Add generic procedure for default SipHash 2-4zhibog2022-02-221-0/+20
|
* Added SipHash + tests and fixed remaining semicolons in vendor/botanzhibog2022-02-221-0/+316