| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | core/crypto: Update the documentation (NFC) | Yawning Angel | 2023-11-17 | 1 | -35/+38 |
| | | |||||
| * | core/crypto: Exile keccak, md5 and sha1 to legacy | Yawning Angel | 2023-11-17 | 5 | -4/+14 |
| | | | | | | | In an perfect world these would just be removed, but the world is imperfect, and people are forced to interact/interface with things that are broken. | ||||
| * | core/crypto/sm3: API cleanup | Yawning Angel | 2023-11-17 | 1 | -8/+10 |
| | | | | | - sm3.Sm3_Context -> sm3.Context | ||||
| * | core/crypto/shake: API cleanup | Yawning Angel | 2023-11-17 | 1 | -34/+32 |
| | | | | | - shake.Shake_Context -> shake.Context | ||||
| * | core/crypto/sha3: API cleanup | Yawning Angel | 2023-11-17 | 1 | -52/+60 |
| | | | | | - sha3.Sha3_Context -> sha3.Context | ||||
| * | 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/sha1: API cleanup | Yawning Angel | 2023-11-17 | 1 | -8/+10 |
| | | | | | -sha1.Sha1_Context -> Context | ||||
| * | core/crypto/md5: API cleanup | Yawning Angel | 2023-11-17 | 1 | -8/+10 |
| | | | | | - md5.Md5_Context -> md5.Context | ||||
| * | core/crypto/keccak: API cleanup | Yawning Angel | 2023-11-17 | 1 | -53/+60 |
| | | | | | - keccak.Keccak_Context -> keccak.Context | ||||
| * | core/crypto/blake2: API cleanup and bug fixes | Yawning Angel | 2023-11-17 | 3 | -42/+52 |
| | | | | | | | | - 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/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/util: Remove, no longer needed | Yawning Angel | 2023-11-17 | 1 | -146/+0 |
| | | |||||
| * | core/crypto/whirlpool: Remove, historical/exotic | Yawning Angel | 2023-11-17 | 2 | -807/+0 |
| | | |||||
| * | core/crypto/tiger: Remove, historical/exotic | Yawning Angel | 2023-11-17 | 4 | -972/+0 |
| | | |||||
| * | core/crypto/streebog: Remove, exotic | Yawning Angel | 2023-11-17 | 2 | -518/+0 |
| | | |||||
| * | core/crypto/ripemd: Remove, historical/exotic | Yawning Angel | 2023-11-17 | 2 | -920/+0 |
| | | |||||
| * | core/crypto/md4: Remove, badly broken | Yawning Angel | 2023-11-17 | 2 | -264/+0 |
| | | |||||
| * | core/crypto/md2: Remove, badly broken | Yawning Angel | 2023-11-17 | 2 | -183/+0 |
| | | |||||
| * | core/crypto/jh: Remove, use SHA-3 | Yawning Angel | 2023-11-17 | 2 | -585/+0 |
| | | |||||
| * | core/crypto/haval: Remove, badly broken | Yawning Angel | 2023-11-17 | 2 | -1815/+0 |
| | | |||||
| * | core/crypto/groestl: Remove, use SHA-3 | Yawning Angel | 2023-11-17 | 2 | -654/+0 |
| | | |||||
| * | core/crypto/gost: Remove, exotic | Yawning Angel | 2023-11-17 | 2 | -383/+0 |
| | | |||||
| * | core/crypto/blake: Remove, use BLAKE2b/BLAKE2s | Yawning Angel | 2023-11-17 | 2 | -727/+0 |
| | | |||||
| * | 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 | 11 | -11/+86 |
| | | | | | | 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/shake: Add a TODO comment (NFC) | Yawning Angel | 2023-11-17 | 1 | -0/+3 |
| | | |||||
| * | core/crypto: Change hash asserts to panics | Yawning Angel | 2023-11-17 | 12 | -85/+44 |
| | | | | | | | | | | | 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/siphash: Fix the low-level API | Yawning Angel | 2023-11-17 | 1 | -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/sm3: Cleanups | Yawning Angel | 2023-11-17 | 1 | -36/+42 |
| | | | | | | | - Use `encoding/endian` - Use `math/bits` - Add `@(private)` annotations to internals | ||||
| * | core/crypto/siphash: Cleanups | Yawning Angel | 2023-11-17 | 1 | -16/+15 |
| | | | | | | | | - Use `encoding/endian` - Use `math/bits` - Add `@(private)` annotations to internals - Minor optimization | ||||
| * | core/crypto/_sha3: Cleanups | Yawning Angel | 2023-11-17 | 1 | -25/+7 |
| | | | | | - Use `math/bits` | ||||
| * | 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/sha1: Cleanups | Yawning Angel | 2023-11-17 | 1 | -30/+21 |
| | | | | | | | - Use `encoding/endian` - Use `math/bits` - Add `@(private)` annotations to internals | ||||
| * | core/crypto/md5: Cleanups | Yawning Angel | 2023-11-17 | 1 | -29/+23 |
| | | | | | | | - Use `encoding/endian` - Use `math/bits` - Add `@(private)` annotations to internals | ||||
| * | core/crypto/poly1305: Cleanups | Yawning Angel | 2023-11-17 | 2 | -37/+24 |
| | | | | | - Use `encoding/endian` | ||||
| * | core/crypto/chacha20poly1305: Cleanups | Yawning Angel | 2023-11-17 | 1 | -5/+5 |
| | | | | | - Use `encoding/endian` | ||||
| * | core/crypto/chacha20: Cleanups | Yawning Angel | 2023-11-17 | 1 | -180/+135 |
| | | | | | | - Use `encoding/endian` - Use `math/bits` | ||||
| * | core/crypto/_blake2: Cleanups | Yawning Angel | 2023-11-17 | 1 | -38/+71 |
| | | | | | | | - Use `encoding/endian` - Add `@(private)` annotations to internals - Add some descriptive comments in the unrolled compression functions | ||||
| * | core/crypto/sm3: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 1 | -168/+176 |
| | | |||||
| * | core/crypto/siphash: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 1 | -175/+188 |
| | | |||||
| * | core/crypto/sha3: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 4 | -604/+639 |
| | | |||||
| * | core/crypto/sha2: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 1 | -358/+373 |
| | | |||||
| * | core/crypto/sha1: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 1 | -77/+77 |
| | | |||||
| * | core/crypto/md5: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 1 | -188/+189 |
| | | |||||
| * | core/crypto/blake2: odinfmt (NFC) | Yawning Angel | 2023-11-17 | 3 | -139/+152 |
| | | |||||
| * | Merge branch 'master' into new-sys-unix | gingerBill | 2023-10-31 | 2 | -2/+22 |
| |\ | |||||
| | * | Replace Math.random with crypto.getRandomValues for _system_number | Damian Tarnawski | 2023-10-27 | 1 | -1/+1 |
| | | | |||||
| | * | Add system_random and random_bytes for js target | Damian Tarnawski | 2023-10-27 | 2 | -2/+22 |
| | | | |||||