mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
address compiler warnings, swap rijndael for aes
This commit is contained in:
@@ -21,14 +21,14 @@
|
||||
var iv = new byte[16];
|
||||
Array.Copy(data, iv, iv.Length);
|
||||
|
||||
using (var rijndael = Rijndael.Create())
|
||||
using (var aes = Aes.Create())
|
||||
{
|
||||
rijndael.Key = finalKey;
|
||||
rijndael.IV = iv;
|
||||
aes.Key = finalKey;
|
||||
aes.IV = iv;
|
||||
|
||||
var buffer = new byte[256];
|
||||
|
||||
using (var decryptor = rijndael.CreateDecryptor(rijndael.Key, rijndael.IV))
|
||||
using (var decryptor = aes.CreateDecryptor(aes.Key, aes.IV))
|
||||
using (var input = new MemoryStream(data))
|
||||
using (var output = new MemoryStream())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user