diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-17 18:55:46 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-17 18:55:46 +0700 |
commit | 67108e3c641758ebe98484cf52454471d9948e0d (patch) | |
tree | a9437e154bf3b71ed41591f94fbe65fa04891bed /crypto/test/src/security | |
parent | Remove unused digest (diff) | |
download | BouncyCastle.NET-ed25519-67108e3c641758ebe98484cf52454471d9948e0d.tar.xz |
Utility method for selecting AES engine
Diffstat (limited to 'crypto/test/src/security')
-rw-r--r-- | crypto/test/src/security/test/SecureRandomTest.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/test/src/security/test/SecureRandomTest.cs b/crypto/test/src/security/test/SecureRandomTest.cs index e603ba410..22d138adc 100644 --- a/crypto/test/src/security/test/SecureRandomTest.cs +++ b/crypto/test/src/security/test/SecureRandomTest.cs @@ -3,6 +3,7 @@ using System.Text; using NUnit.Framework; +using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Digests; using Org.BouncyCastle.Crypto.Engines; using Org.BouncyCastle.Crypto.Macs; @@ -80,7 +81,7 @@ namespace Org.BouncyCastle.Security.Tests [Test] public void TestSP800Ctr() { - SecureRandom random = new SP800SecureRandomBuilder().BuildCtr(new AesEngine(), 256, new byte[32], false); + SecureRandom random = new SP800SecureRandomBuilder().BuildCtr(AesUtilities.CreateEngine(), 256, new byte[32], false); CheckSecureRandom(random); } @@ -113,7 +114,7 @@ namespace Org.BouncyCastle.Security.Tests [Test] public void TestX931() { - SecureRandom random = new X931SecureRandomBuilder().Build(new AesEngine(), new KeyParameter(new byte[16]), false); + SecureRandom random = new X931SecureRandomBuilder().Build(AesUtilities.CreateEngine(), new KeyParameter(new byte[16]), false); CheckSecureRandom(random); } |