| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | 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 |