address compiler warnings, swap rijndael for aes

This commit is contained in:
Eliot Jones
2023-05-21 13:44:36 +01:00
parent 9acfac4fdf
commit 32a562f02a
5 changed files with 23 additions and 15 deletions

View File

@@ -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())
{