Closed MatthiasValvekens closed 1 year ago
Patch coverage: 100.00
% and project coverage change: +0.01
:tada:
Comparison is base (
e4e5cdd
) 98.14% compared to head (f4a7365
) 98.15%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Description of the changes
While the PDF standard is silent on this issue, Acrobat implements the
dhSinglePass-stdDH-sha*kdf
ephemeral-static ECDH family of schemes from RFC 5753, allowing documents to be encrypted for ECC key recipients. This PR implements that feature in pyHanko.Caveats
Support for this mode of encryption in PDF readers & libraries is spotty at best, but that's not a huge deal, since presumably someone who's willing to advertise an ECC public key as a target for PDF encryption has the means to decrypt it.
Checklist
Please go over this checklist to increase the chances of your PR being worked on in a timely manner. Deviations are allowed with proper justification (see previous section).
For new features (delete if not applicable)