mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-11-28 17:47:12 +08:00
#409 handle aes decrypt of empty arrays correctl
This commit is contained in:
@@ -13,6 +13,11 @@
|
|||||||
|
|
||||||
public static byte[] Decrypt(byte[] data, byte[] finalKey)
|
public static byte[] Decrypt(byte[] data, byte[] finalKey)
|
||||||
{
|
{
|
||||||
|
if (data.Length == 0)
|
||||||
|
{
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
var iv = new byte[16];
|
var iv = new byte[16];
|
||||||
Array.Copy(data, iv, iv.Length);
|
Array.Copy(data, iv, iv.Length);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user