You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IntegrityVerifier resolves an indirect KDFSalt after decryption is installed #478
Found while fixing #398 (PR #458), left unchanged there.
DocumentSecurity.Open now evicts everything the encryption dictionary's entries loaded before decryption is installed, and keeps the values the handler read in PdfSecurity.ReadBeforeDecryption. IntegrityVerifier still resolves KDFSalt (ISO 32000-2 §7.6.7, integrity protection) after the decryptor is installed, so an indirect KDFSalt would be read through decryption instead of as stored. No sample or fuzz input hits this today (KDFSalt is a direct string in every file seen).
Expected: KDFSalt is read as stored (§7.6.2: strings in the encryption dictionary are not encrypted), like the other encryption dictionary entries after #398.
Test: an AES-256-GCM file with an indirect KDFSalt verifies its integrity MAC.
Activity
style(tests): name the byte range placeholder as a local (#478)
perf(security): resolve KDFSalt without a delegate or a field (#478)
fix(security): read an indirect KDFSalt as stored (#478) (#486)
michaelstonis commentedon Nov 10, 2026
Fixed in PR #486: KDFSalt is read as stored.