mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-22 20:13:58 +08:00
finish support for revision 5 encryption using aes 256 #34
This commit is contained in:
@@ -72,6 +72,10 @@
|
||||
{
|
||||
method = CryptDictionary.Method.AesV2;
|
||||
}
|
||||
else if (cfmName == NameToken.Aesv3)
|
||||
{
|
||||
method = CryptDictionary.Method.AesV3;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new PdfDocumentEncryptedException($"Unrecognized CFM option for crypt filter {cfm}: {cryptDictionaryToken}.");
|
||||
|
Reference in New Issue
Block a user