Fixed test_aes_128_decrypt_roundtrip_with_valid_padding and two similar tests to use the ciphertext slice returned by encrypt_padded_mut instead of the entire buffer. The buffer is over-allocated to accommodate padding, but only the returned slice contains valid ciphertext. Using the entire buffer included trailing zeros that caused decryption to fail with invalid padding. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pdftract-cer-diff | ||
| pdftract-cli | ||
| pdftract-core | ||
| pdftract-libpdftract | ||
| pdftract-py | ||