202 Commits

Author SHA1 Message Date
hashlag 617957ce4a Merge branch 'unpad'
Chaos Ci / test (push) Successful in 2m57s
Chaos Ci / benchmark (push) Successful in 1m53s
2026-07-20 03:06:50 +03:00
hashlag eb178853e5 Remove unused #include.
Chaos Ci / test (push) Successful in 3m1s
Chaos Ci / benchmark (push) Successful in 1m55s
2026-07-20 02:56:39 +03:00
hashlag 442f7fbb29 Remove trailing whitespaces. 2026-07-20 02:56:39 +03:00
hashlag 357f00d3e1 Fix missing includes. 2026-07-20 02:56:39 +03:00
hashlag 3560e321d7 Enable clangd's missing includes diagnostic. 2026-07-20 02:56:39 +03:00
hashlag 5eb1aa2ece Set clangd's unused includes diagnostic to strict explicitly. 2026-07-20 02:56:39 +03:00
hashlag d38b77fab2 Remove unused #include.
Chaos Ci / test (push) Successful in 2m58s
Chaos Ci / benchmark (push) Successful in 1m52s
2026-07-20 02:54:15 +03:00
hashlag 233c48bb3f Remove trailing whitespaces. 2026-07-20 02:53:46 +03:00
hashlag 1adec1115c Fix missing includes. 2026-07-20 02:53:13 +03:00
hashlag e6eb390469 Enable clangd's missing includes diagnostic. 2026-07-20 02:36:50 +03:00
hashlag da34f9b499 Set clangd's unused includes diagnostic to strict explicitly. 2026-07-20 02:34:31 +03:00
hashlag e6c4f1fc98 Implement unpad for PKCS#7 padding.
Chaos Ci / test (push) Successful in 3m3s
Chaos Ci / benchmark (push) Successful in 1m55s
2026-07-20 02:20:54 +03:00
hashlag 26f5aa150c Add .clangd.
Chaos Ci / test (push) Successful in 2m51s
Chaos Ci / benchmark (push) Successful in 1m26s
2026-07-07 00:06:06 +03:00
hashlag 0608deb618 CI: Set ASan and UBSan verbosity to 1.
Chaos Ci / test (push) Successful in 2m50s
Chaos Ci / benchmark (push) Successful in 1m25s
2026-07-06 04:09:50 +03:00
hashlag f399c1b0a5 CI: Simplify steps' naming.
Chaos Ci / test (push) Successful in 2m19s
Chaos Ci / benchmark (push) Successful in 1m51s
2026-07-06 03:58:23 +03:00
hashlag 8a772f9fc5 CI: Do not collect coverage under valgrind.
Chaos Ci / test (push) Successful in 2m19s
Chaos Ci / benchmark (push) Successful in 1m57s
2026-07-06 03:56:16 +03:00
hashlag d50a82ad18 CI: Extract benchmarking into a distinct job.
Chaos Ci / test (push) Successful in 2m16s
Chaos Ci / benchmark (push) Successful in 1m49s
2026-07-06 03:48:04 +03:00
hashlag f37271ec5b Add enable no-sanitize-recover for all UBSan checks.
Chaos Ci / test-and-benchmark (push) Successful in 3m22s
2026-07-06 03:41:35 +03:00
hashlag 0126196ea8 Add sanitized test run to CI.
Chaos Ci / test-and-benchmark (push) Successful in 3m26s
2026-07-06 03:25:30 +03:00
hashlag e0768cde3c Make coverage optional for debug builds by introducing CHAOS_COVERAGE
flag.
2026-07-06 02:44:37 +03:00
hashlag f9dbca34c7 Remove trailing whitespace. 2026-07-06 02:31:12 +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