add support for aes-128 decryption #34

This commit is contained in:
Eliot Jones
2019-06-08 15:23:21 +01:00
parent a19122478d
commit 21a4ba597e
4 changed files with 80 additions and 2 deletions

View File

@@ -358,7 +358,7 @@
if (useAes)
{
throw new PdfDocumentEncryptedException("Decryption for AES-128 not currently supported.", encryptionDictionary);
return AesEncryptionHelper.Decrypt(data, finalKey);
}
return RC4.Encrypt(finalKey, data);