diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/pqc/crypto/frodo/FrodoMatrixGenerator.cs | 2 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/ntruprime/NtruPrimeEngine.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/pqc/crypto/frodo/FrodoMatrixGenerator.cs b/crypto/src/pqc/crypto/frodo/FrodoMatrixGenerator.cs index ffd7727b3..01f1016a7 100644 --- a/crypto/src/pqc/crypto/frodo/FrodoMatrixGenerator.cs +++ b/crypto/src/pqc/crypto/frodo/FrodoMatrixGenerator.cs @@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Frodo public Aes128MatrixGenerator(int n, int q) : base(n, q) { - cipher = new BufferedBlockCipher(new AesEngine()); + cipher = new BufferedBlockCipher(AesUtilities.CreateEngine()); } diff --git a/crypto/src/pqc/crypto/ntruprime/NtruPrimeEngine.cs b/crypto/src/pqc/crypto/ntruprime/NtruPrimeEngine.cs index 2302e0c4b..64e4e19fc 100644 --- a/crypto/src/pqc/crypto/ntruprime/NtruPrimeEngine.cs +++ b/crypto/src/pqc/crypto/ntruprime/NtruPrimeEngine.cs @@ -916,7 +916,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.NtruPrime uint[] L_uint = new uint[_p]; // AES256 CTR - BufferedBlockCipher cipher = new BufferedBlockCipher(new SicBlockCipher(new AesEngine())); + BufferedBlockCipher cipher = new BufferedBlockCipher(new SicBlockCipher(AesUtilities.CreateEngine())); KeyParameter kp = new KeyParameter(k); cipher.Init(true, new ParametersWithIV(kp, new byte[16])); int len = cipher.ProcessBytes(cipherInput, 0, 4 * _p, L, 0); |