Commit Graph

192 Commits

Author SHA1 Message Date
hashlag a5b7b1d7e1 Set clangd's unused includes diagnostic to strict explicitly. 2026-07-20 03:08:21 +03:00
hashlag c0f2f15d08 Add .clangd.
Chaos Ci / test (push) Successful in 3m1s
Chaos Ci / benchmark (push) Successful in 1m49s
2026-07-07 00:07:12 +03:00
hashlag 3c3ff4af15 CI: Set ASan and UBSan verbosity to 1.
Chaos Ci / test (push) Successful in 2m54s
Chaos Ci / benchmark (push) Successful in 1m23s
2026-07-06 04:18:50 +03:00
hashlag b2ea94c18b CI: Simplify steps' naming. 2026-07-06 04:18:50 +03:00
hashlag 00dc60eee6 CI: Do not collect coverage under valgrind. 2026-07-06 04:18:50 +03:00
hashlag bdd63f560a CI: Extract benchmarking into a distinct job. 2026-07-06 04:18:50 +03:00
hashlag b220221c8b Add enable no-sanitize-recover for all UBSan checks. 2026-07-06 04:18:50 +03:00
hashlag 8351bf2b74 Add sanitized test run to CI. 2026-07-06 04:18:50 +03:00
hashlag ac8424b2b4 Make coverage optional for debug builds by introducing CHAOS_COVERAGE
flag.
2026-07-06 04:18:50 +03:00
hashlag 809d243d38 Remove trailing whitespace. 2026-07-06 04:18:50 +03:00
hashlag bea8a84a4f Add ECB-mode encryptor draft implementation.
Chaos Ci / test-and-benchmark (push) Successful in 4m16s
2026-07-05 21:34:36 +03:00
hashlag 6c5a12f339 Standartize block cipher's inner encryptor/decryptor class names.
Chaos Ci / test-and-benchmark (push) Successful in 2m43s
2026-06-22 02:02:44 +03:00
hashlag aafe22106e Merge branch 'pad'
Chaos Ci / test-and-benchmark (push) Successful in 2m39s
2026-06-19 01:09:50 +03:00
hashlag eb3da5ff75 Add ISO/IEC 7816-4 padding implementation.
Chaos Ci / test-and-benchmark (push) Successful in 2m8s
2026-06-18 01:28:38 +03:00
hashlag 5a16d154a2 Add .DS_Store to .gitignore.
Chaos Ci / test-and-benchmark (push) Has been cancelled
2026-06-17 23:46:25 +03:00
hashlag 6c5b2a6ca9 Add .DS_Store to .gitignore.
Chaos Ci / test-and-benchmark (push) Successful in 2m6s
2026-06-17 23:44:17 +03:00
hashlag 47b8248586 Fix exception message. Mentioned class was renamed.
Chaos Ci / test-and-benchmark (push) Successful in 2m7s
2026-03-23 00:14:04 +03:00
hashlag 6998d81e98 Fix compilation with apple clang.
Chaos Ci / test-and-benchmark (push) Successful in 2m17s
Provide the template parameter for std::min<> explicitly. :)
2026-03-23 00:00:59 +03:00
hashlag 4df35b5256 Fix compilation with apple clang.
Chaos Ci / test-and-benchmark (push) Successful in 3m44s
Provide the template parameter for std::min<> explicitly. :)
2026-03-22 23:53:33 +03:00
hashlag 797a5428cc Add Padder<>. A CRTP base for padding algorithms.
Chaos Ci / test-and-benchmark (push) Successful in 1m59s
2026-02-08 23:44:51 +03:00
hashlag 5baede0a1d Rename PadPkcs7 --> PadderPkcs7. 2026-02-08 23:31:24 +03:00
hashlag 2a3185406b Add PKCS#7 padding implementation.
Chaos Ci / test-and-benchmark (push) Successful in 1m58s
2026-02-08 23:05:57 +03:00
hashlag 0647a7c3dc DesEncryptor/DesDecryptor: expose key type.
Chaos Ci / test-and-benchmark (push) Successful in 1m57s
2026-02-08 02:57:00 +03:00
hashlag 7c86d704b7 Merge branch 'block-expose-key-size'
Chaos Ci / test-and-benchmark (push) Successful in 1m54s
Expose block ciphers' key sizes for usage in compile-time context.
2026-02-07 18:14:09 +03:00
hashlag 9f6265395d DesCryptTests: Replace magic const 8 (where used as the key length) with DesCrypt::KeySize.
Chaos Ci / test-and-benchmark (push) Successful in 1m51s
2026-02-07 18:09:42 +03:00
hashlag 151c93560c Expose DES key size through DesCrypt, DesCrypt::Encryptor, DesCrypt::Decryptor. 2026-02-07 18:02:27 +03:00
hashlag 3059bd4c66 Make SeArray::Size() static. 2026-02-07 17:54:37 +03:00
hashlag ccf1397595 Merge branch 'exception-tests'
Chaos Ci / test-and-benchmark (push) Successful in 1m56s
Add missing ChaosException tests.
2026-02-06 18:18:45 +03:00
hashlag 6a09d81ae2 Add ChaosExceptionTests.
Chaos Ci / test-and-benchmark (push) Successful in 2m2s
2026-02-06 18:05:57 +03:00
hashlag b4f015f501 Compile tests with -Wunused -Werror=unused.
Chaos Ci / test-and-benchmark (push) Successful in 1m54s
Promotes cleaner and less error-prone code.
2026-02-05 16:16:38 +03:00
hashlag 95e74db6ec Perform aggregate zero-init instead of .fill(0) where appropriate.
Chaos Ci / test-and-benchmark (push) Successful in 1m50s
Simpler and more consistent code.
2026-02-05 00:40:55 +03:00
hashlag ed22d29af0 Merge branch 'explicit-bounds'
Chaos Ci / test-and-benchmark (push) Successful in 1m50s
Harden against out-of-bounds writes.
2026-02-04 23:52:50 +03:00
hashlag 65eb51c133 Remove unused CrunchUInt64() overload.
Chaos Ci / test-and-benchmark (push) Successful in 1m57s
2026-02-04 23:47:45 +03:00
hashlag b34fda75ef DesCryptTests: IteratorUsage tests: Add testcases with begin == end.
Chaos Ci / test-and-benchmark (push) Successful in 1m57s
2026-02-04 23:37:05 +03:00
hashlag 15d841893c IteratorUsage tests: Add some canary nulled space before begin.
Hardening against write-before-begin.
2026-02-04 23:31:14 +03:00
hashlag 5fd27cd7b5 Merge branch 'stream-bounds-tests' into explicit-bounds
Chaos Ci / test-and-benchmark (push) Successful in 1m50s
Add some past-the-end write hardening tests for stream ciphers.
2026-02-04 01:02:56 +03:00
hashlag 1bf91a90d0 Add Arc4CryptTests, DecryptOutIteratorUsageTest.
Harden against past-the-end write.
2026-02-04 01:01:54 +03:00
hashlag 2d64389d66 Add Arc4CryptTests, EncryptOutIteratorUsageTest.
Harden against past-the-end write.
2026-02-04 00:43:40 +03:00
hashlag ccdf14d31a Add Arc4GenTests, GenerateOutIteratorUsageTest.
Harden against past-the-end write.
2026-02-04 00:25:15 +03:00
hashlag 9734f9a517 Merge branch 'block-exp-bounds' into explicit-bounds
Chaos Ci / test-and-benchmark (push) Successful in 1m49s
Implement explicit bounds requirements for block ciphers.
2026-02-02 01:51:58 +03:00
hashlag 3de69d3298 Fix assertion style.
It should be expectation-first...
2026-02-02 01:15:38 +03:00
hashlag a0f17ea127 Decryptor: Require end of the output span to be indicated explicitly.
Usage becomes much less error-prone.
2026-02-02 01:10:22 +03:00
hashlag 67709e5361 Encryptor: Require end of the output span to be indicated explicitly.
Usage becomes much less error-prone.
2026-02-02 00:52:08 +03:00
hashlag d194fef1af Mark all Block::Decryptor<> methods const.
Chaos Ci / test-and-benchmark (push) Successful in 1m42s
This allows for convenient usage of const Decryptor<Impl> &.
2026-02-01 00:24:50 +03:00
hashlag cdcab2f4f7 Mark all Block::Encryptor<> methods const.
This allows for convenient usage of const Encryptor<Impl> &.
2026-01-31 23:56:25 +03:00
hashlag a97826da88 Expose block sizes of block ciphers.
Chaos Ci / test-and-benchmark (push) Successful in 1m45s
Both via static data members and Encryptor/Decryptor interfaces.
Crucial for safe memory allocation routine.
2026-01-31 19:26:51 +03:00
hashlag 8897d7a910 Merge branch 'block-cipher'
Chaos Ci / test-and-benchmark (push) Successful in 1m43s
Introduce fixed CRTP interfaces for block cipher
encryption and decryption.
2026-01-31 18:50:10 +03:00
hashlag 73c455901b Introduce Block::Decryptor<> CRTP base class.
Chaos Ci / test-and-benchmark (push) Successful in 1m43s
Inherit DesDecryptor from it.
2026-01-31 18:35:23 +03:00
hashlag 4cf79b61ad Introduce Block::Encryptor<> CRTP base class.
Inherit DesEncryptor from it.
2026-01-31 18:12:43 +03:00
hashlag ba70abd2af Rename DesCrypt::Encryptor --> DesEncryptor, DesCrypt::Decryptor --> DesDecryptor.
Chaos Ci / test-and-benchmark (push) Successful in 1m43s
Maintain naming consistency with Hash subproject.
2026-01-31 17:22:14 +03:00