finish support for revision 5 encryption using aes 256 #34

This commit is contained in:
Eliot Jones
2019-06-13 19:46:08 +01:00
parent d0a3cd398f
commit 4c716fcbd6
6 changed files with 52 additions and 35 deletions

View File

@@ -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}.");