summary refs log tree commit diff
path: root/crypto/test/src/pqc
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/test/src/pqc')
-rw-r--r--crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs b/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs
index 34a7a4cae..14c37cbbe 100644
--- a/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs
+++ b/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs
@@ -38,6 +38,24 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests
 
         private static readonly IEnumerable<string> TestVectorFilesSNtruP = ParametersSNtruP.Keys;
 
+        [Test]
+        public void TestParameters()
+        {
+            Assert.AreEqual(256, SNtruPrimeParameters.sntrup653.DefaultKeySize);
+            Assert.AreEqual(256, SNtruPrimeParameters.sntrup761.DefaultKeySize);
+            Assert.AreEqual(256, SNtruPrimeParameters.sntrup857.DefaultKeySize);
+            Assert.AreEqual(256, SNtruPrimeParameters.sntrup953.DefaultKeySize);
+            Assert.AreEqual(256, SNtruPrimeParameters.sntrup1013.DefaultKeySize);
+            Assert.AreEqual(256, SNtruPrimeParameters.sntrup1277.DefaultKeySize);
+
+            Assert.AreEqual(256, NtruLPRimeParameters.ntrulpr653.DefaultKeySize);
+            Assert.AreEqual(256, NtruLPRimeParameters.ntrulpr761.DefaultKeySize);
+            Assert.AreEqual(256, NtruLPRimeParameters.ntrulpr857.DefaultKeySize);
+            Assert.AreEqual(256, NtruLPRimeParameters.ntrulpr953.DefaultKeySize);
+            Assert.AreEqual(256, NtruLPRimeParameters.ntrulpr1013.DefaultKeySize);
+            Assert.AreEqual(256, NtruLPRimeParameters.ntrulpr1277.DefaultKeySize);
+        }
+
         [TestCaseSource(nameof(TestVectorFilesNtruLP))]
         [Parallelizable(ParallelScope.All)]
         public void TVNtruLP(string testVectorFile)