pdftract/crates/pdftract-cli/src/grep
jedarden 7ffb1a729f fix(pdftract-63ka2): AES-128 test buffer allocation for PKCS#7 padding
The encrypt_padded_mut API requires the buffer to be large enough to
hold the padded ciphertext. The tests were using plaintext.to_vec() which
only allocated plaintext.len() bytes, insufficient for padding.

Changed pattern:
- Before: plaintext.to_vec() (insufficient space)
- After: vec![0u8; plaintext.len() + 16] with copy_from_slice

Also fixed incorrect usage: encrypt_padded_mut returns Result<(), Error>,
not a length. Use data_copy.len() directly for ciphertext length.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 01:30:33 -04:00
..
event.rs feat(pdftract-2hqxi): implement indicatif progress bar with watchdog 2026-05-27 20:02:11 -04:00
expand.rs feat(pdftract-3gf5t): implement walkdir folder traversal for grep 2026-05-26 17:42:27 -04:00
highlight.rs feat(pdftract-22q8e): implement highlight writer module foundation 2026-05-26 23:08:03 -04:00
matcher.rs feat(pdftract-ixzbg): implement regex engine wiring for grep subcommand 2026-05-24 06:30:02 -04:00
mod.rs fix(pdftract-63ka2): AES-128 test buffer allocation for PKCS#7 padding 2026-05-28 01:30:33 -04:00
progress.rs feat(pdftract-2hqxi): implement indicatif progress bar with watchdog 2026-05-27 20:02:11 -04:00
worker.rs feat(pdftract-22q8e): implement highlight writer module foundation 2026-05-26 23:08:03 -04:00