aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/sm3
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:mem` import from `core:crypto`.Jeroen van Rijn3 days1-2/+2
|
* 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.
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* core/crypto: Switch to using `ensure`Yawning Angel2025-03-231-7/+4
|
* core/crypto: Add `rodata` annotations (NFC)Yawning Angel2025-03-231-1/+1
|
* core: improve package doc comments for the documentation generatorLaytan Laats2024-09-031-1/+1
|
* core/crypto: Expose the block sizes for every hash algorithmYawning Angel2024-02-071-4/+4
| | | | | While I just went and made this private, this information is required for keying HMAC.
* core/crypto: Documentation cleanupsYawning Angel2024-02-071-11/+28
|
* core:crypto/hash: Add a generic higher level hash interfaceYawning Angel2024-02-071-89/+21
| | | | | | 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/sm3: API cleanupYawning Angel2023-11-171-8/+10
| | | | - sm3.Sm3_Context -> sm3.Context
* core/crypto: Add more assertions to the low level APIYawning Angel2023-11-171-0/+10
| | | | | 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/+4
| | | | | | | | | | 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/sm3: CleanupsYawning Angel2023-11-171-36/+42
| | | | | | - Use `encoding/endian` - Use `math/bits` - Add `@(private)` annotations to internals
* core/crypto/sm3: odinfmt (NFC)Yawning Angel2023-11-171-168/+176
|
* Just make the `io.Reader` etc aliasesgingerBill2023-06-081-1/+1
|
* Update to new io interfacegingerBill2023-06-081-1/+1
|
* Strip unneeded semicolonsgingerBill2022-01-251-1/+1
|
* Extended crypto API by variants that write the result into a destination ↵zhibog2021-12-311-10/+33
| | | | buffer, instead of returning it
* Removed context switching system from the crypto library to simplify the codezhibog2021-11-091-180/+74
|
* Remove the read_entire_file from the crypto utils and now use the one within ↵zhibog2021-10-161-1/+1
| | | | core:os
* Improved API. hash_file procs now just take a file handle instead of a pathzhibog2021-10-151-13/+10
|
* Add crypto library. Additional information is included in the README.mdzhibog2021-10-141-0/+336