Commit Graph

11 Commits

Author SHA1 Message Date
ae33c596ef
test(aes): add AES-CBC NIST SP 800-38A test vectors
Add integration tests for AES-CBC mode:
    - Single block encrypt/decrypt with NIST vectors
    - Multi-block encrypt with NIST vectors
    - Multi-block roundtrip verification
    - Empty plaintext handling
    - Arbitrary length plaintext
2025-12-31 04:12:20 +02:00
1ffc0327b3
feat(cipher-factory,cli): add CBC mode support to CipherContext and CLI
Update CipherContext:
    - Add optional iv field for CBC mode
    - Add process_cbc() for CBC-specific handling
    - Add parse_hex() helper for decryption input
    - Separate ECB and CBC processing paths

Update CLI:
    - Add --iv argument for initialization vector
    - Pass IV through to CipherContext
2025-12-31 01:09:00 +02:00
6c5cd9b78a
feat(cipher-factory): add AesCbc algorithm variant
Add AES-CBC support to Algorithm enum:
    - Add AesCbc variant with clap name "aes-cbc"
    - Add requires_iv() method to check if algorithm needs IV
    - Add new_cbc_cipher() for creating AesCbc instances
    - Add encrypt_cbc() and decrypt_cbc() helper methods
    - Update parse_text() and Display for AesCbc
2025-12-31 01:01:47 +02:00
220baa09ad
docs(cipher-factory): document public API types
Add doc comments to OutputFormat, OperationMode enums and their methods.
Add crate-level documentation describing the factory's purpose.
2025-12-31 00:26:31 +02:00
f1a0ab75c3
fix: clippy warnings 2025-11-26 06:42:29 +02:00
aa4bd9ecec
feat(web): create CipherForm component 2025-11-26 03:43:23 +02:00
5f22690ef7
feat: add CipherContext struct 2025-11-26 01:38:11 +02:00
46a47102b9
feat(factory): add cipher/algorithm helper functions 2025-11-24 12:02:22 +02:00
051bba33a8
feat(cli): add AES to cli app 2025-11-24 11:23:37 +02:00
bc1622e43f
chore: use workspace package vars 2025-11-24 08:50:22 +02:00
f42080c90a
feat: make factory lib 2025-11-24 08:49:57 +02:00