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
StandardSecurityDecryptor.TryComputeFileKey has no production caller #209
StandardSecurityDecryptor.TryComputeFileKey (src/VellumPdf.Kernel/Encryption/StandardSecurityDecryptor.cs:310)
is reached from exactly one place in the tree: StandardSecurityDecryptorTests.cs:113. Nothing in src/ calls it. The live authentication policy is EncryptionSetup.TryAuthenticate, which walks the
candidate password encodings itself and tries owner before user, so that it can report which of the two
matched.
The two orders differ, and the doc comment now explains why that is immaterial for a method answering
only "does this password open the document at all?". That comment is the reason this is a cleanup rather
than a trap — but it documents a method held alive by its own test, which is the shape that goes stale
without anyone noticing.
Two ways out, either fine:
delete it, and delete the test with it; or
keep it as the deliberate "any password" convenience and give it a production caller, if one of the
entry points on the way (a preflight -p, or Reader: write out a decrypted copy of an encrypted document #186) wants that question rather than the
owner-or-user one.
Worth doing before VellumPdf.Reader graduates from Preview (#187), so the decision is made
deliberately rather than by the surface simply persisting.
Activity
docs: release 2.2.0 — encryption and parser hardening (#217)
chore: delete two members the decrypt work left without readers (#216)
docs: release 2.2.0 — encryption and parser hardening (#217)
chore: delete two members the decrypt work left without readers (#216)
docs: release 2.2.0 — encryption and parser hardening (#217)