Modified AESGCM to support specifying the block cipher engine through generics

This commit is contained in:
David Sparer
2016-07-11 15:10:43 -06:00
parent 76e290f6b7
commit b2b53561ba
2 changed files with 19 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
using System.Security;
using mRemoteNG.Security;
using NUnit.Framework;
using Org.BouncyCastle.Crypto.Engines;
namespace mRemoteNGTests.Security
@@ -14,7 +15,7 @@ namespace mRemoteNGTests.Security
[SetUp]
public void Setup()
{
_aesgcm = new AESGCM();
_aesgcm = new AESGCM<AesFastEngine>();
_encryptionKey = "mypassword111111".ConvertToSecureString();
_plainText = "MySecret!";
}