| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Remove `core:mem` import from `core:crypto`. | Jeroen van Rijn | 3 days | 1 | -2/+2 |
| | | |||||
| * | Change Odin's LICENSE to zlib from BSD 3-clause | gingerBill | 2025-10-28 | 1 | -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 Rijn | 2025-10-09 | 1 | -1/+1 |
| | | |||||
| * | Add core/hyperthread count for Windows and Linux (#5216) | Jeroen van Rijn | 2025-05-25 | 1 | -1/+1 |
| | | | | | | Add core/hyperthread count to `core:sys/info` for Windows and Linux. TODO: Linux RISCV, Linux ARM, Darwin, and the BSDs. | ||||
| * | core/crypto: Switch to using `ensure` | Yawning Angel | 2025-03-23 | 1 | -7/+4 |
| | | |||||
| * | core/crypto/sha2: Clean up the portable code slightly | Yawning Angel | 2025-03-23 | 1 | -14/+21 |
| | | |||||
| * | core/crypto/sha2: Use hardware SHA224/256 when available (AMD64) | Yawning Angel | 2025-03-23 | 3 | -2/+282 |
| | | |||||
| * | core/crypto: Add `rodata` annotations (NFC) | Yawning Angel | 2025-03-23 | 1 | -2/+2 |
| | | |||||
| * | core: improve package doc comments for the documentation generator | Laytan Laats | 2024-09-03 | 1 | -2/+2 |
| | | |||||
| * | core/crypto: Expose the block sizes for every hash algorithm | Yawning Angel | 2024-02-07 | 1 | -20/+20 |
| | | | | | | While I just went and made this private, this information is required for keying HMAC. | ||||
| * | core/crypto: Documentation cleanups | Yawning Angel | 2024-02-07 | 1 | -23/+51 |
| | | |||||
| * | core:crypto/hash: Add a generic higher level hash interface | Yawning Angel | 2024-02-07 | 1 | -398/+33 |
| | | | | | | | 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/sha2: API cleanup | Yawning Angel | 2023-11-17 | 1 | -35/+45 |
| | | | | | | - sha2.Sha256_Context -> sha2.Context_256 - sha2.Sha512_Context -> sha2.Context_512 | ||||
| * | core/crypto/sha2: Refactor update/final | Yawning Angel | 2023-11-17 | 1 | -76/+78 |
| | | | | | | | | | | This is largely modeled off the SM3 versions of these routines, since the relevant parts of the code are the same between SHA-256 and SM3, and the alterations required to support SHA-512 are relatively simple. The prior versions of update and the transform would leak memory, and doing things this way also reduces the context buffer sizes by 1 block. | ||||
| * | core/crypto/sha2: Add SHA-512/256 | Yawning Angel | 2023-11-17 | 1 | -5/+102 |
| | | |||||
| * | core/crypto: Add more assertions to the low level API | Yawning Angel | 2023-11-17 | 1 | -0/+12 |
| | | | | | | Assertions here are "fine" and it matches what the code that has the checks in init/update/final already does. | ||||
| * | core/crypto/sha2: Fix overflow for large amounts of hashed data | Yawning Angel | 2023-11-17 | 1 | -5/+6 |
| | | |||||
| * | core/crypto: Change hash asserts to panics | Yawning Angel | 2023-11-17 | 1 | -16/+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/sha2: Fix `hash_stream_224` and `hash_stream_256` | Yawning Angel | 2023-11-17 | 1 | -27/+22 |
| | | |||||
| * | core/crypto/sha2: Cleanups | Yawning Angel | 2023-11-17 | 1 | -33/+35 |
| | | | | | | | - Use `encoding/endian` - Use `math/bits` - Add `@(private)` annotations to internals | ||||
| * | core/crypto/sha2: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 1 | -358/+373 |
| | | |||||
| * | Just make the `io.Reader` etc aliases | gingerBill | 2023-06-08 | 1 | -4/+4 |
| | | |||||
| * | Update to new io interface | gingerBill | 2023-06-08 | 1 | -4/+4 |
| | | |||||
| * | Fix issue 1761. Added the test vector to the core and vendor tests | zhibog | 2022-05-04 | 1 | -2/+4 |
| | | |||||
| * | Strip unneeded semicolons | gingerBill | 2022-01-25 | 1 | -4/+4 |
| | | |||||
| * | Extended crypto API by variants that write the result into a destination ↵ | zhibog | 2021-12-31 | 1 | -28/+117 |
| | | | | | buffer, instead of returning it | ||||
| * | Removed context switching system from the crypto library to simplify the code | zhibog | 2021-11-09 | 1 | -407/+215 |
| | | |||||
| * | Remove the read_entire_file from the crypto utils and now use the one within ↵ | zhibog | 2021-10-16 | 1 | -4/+4 |
| | | | | | core:os | ||||
| * | Improved API. hash_file procs now just take a file handle instead of a path | zhibog | 2021-10-15 | 1 | -52/+40 |
| | | |||||
| * | Add crypto library. Additional information is included in the README.md | zhibog | 2021-10-14 | 1 | -0/+797 |