#409 handle aes decrypt of empty arrays correctl

This commit is contained in:
Eliot Jones
2022-01-12 19:37:44 +00:00
parent b89c8c577d
commit 5b66e4b846

View File

@@ -13,6 +13,11 @@
public static byte[] Decrypt(byte[] data, byte[] finalKey)
{
if (data.Length == 0)
{
return data;
}
var iv = new byte[16];
Array.Copy(data, iv, iv.Length);