aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/_blake2
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:mem` import from `core:crypto`.Jeroen van Rijn3 days1-3/+27
|
* Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-281-1/+1
| | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
* core/crypto: Switch to using `ensure`Yawning Angel2025-03-231-17/+11
|
* core/crypto: Add `rodata` annotations (NFC)Yawning Angel2025-03-231-2/+2
|
* core:crypto/hash: Add a generic higher level hash interfaceYawning Angel2024-02-071-39/+58
| | | | | | There is a lot of code duplicated in convenience methods in each hash implementation, and having a generic hash type makes implementing higher-level constructs such as HMAC significantly easier down the road.
* core/crypto/blake2: API cleanup and bug fixesYawning Angel2023-11-171-8/+16
| | | | | | | - blake2s.Blake2s_Context -> blake2s.Context - blake2b.Blake2b_Context -> blake2b.Context - Fix the BLAKE2s low level API (context type was incorrect) - Support the configurable output size
* core/crypto: Add more assertions to the low level APIYawning Angel2023-11-171-1/+13
| | | | | Assertions here are "fine" and it matches what the code that has the checks in init/update/final already does.
* core/crypto: Change hash asserts to panicsYawning Angel2023-11-171-1/+7
| | | | | | | | | | 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/_blake2: CleanupsYawning Angel2023-11-171-38/+71
| | | | | | - Use `encoding/endian` - Add `@(private)` annotations to internals - Add some descriptive comments in the unrolled compression functions
* core/crypto/blake2: odinfmt (NFC)Yawning Angel2023-11-171-27/+40
|
* Rename files to not start with `_`gingerBill2023-09-261-0/+0
|
* Removed context switching system from the crypto library to simplify the codezhibog2021-11-091-14/+22
|
* Add crypto library. Additional information is included in the README.mdzhibog2021-10-141-0/+2786