pdftract/Cargo.toml
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

28 lines
797 B
TOML

[workspace]
resolver = "2"
members = ["crates/pdftract-core", "crates/pdftract-cli", "crates/pdftract-py", "crates/pdftract-libpdftract"]
exclude = ["tests/fixtures/generate_lzw_fixtures.rs"]
[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.78"
license = "MIT OR Apache-2.0"
repository = "https://github.com/jedarden/pdftract"
authors = ["Jed Cabanero <me@jedcabanero.com>"]
homepage = "https://github.com/jedarden/pdftract"
documentation = "https://docs.rs/pdftract-core"
[workspace.dependencies]
# Dependencies shared across workspace crates
anyhow = "1.0"
base64 = "0.22"
flate2 = "1.0"
lzw = "0.10"
memchr = "2.7"
secrecy = "0.10"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
tracing = "0.1"
unicode-normalization = "0.1"
unicode-bidi = "0.3"