summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2022-07-26 18:56:57 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2022-07-26 18:56:57 +1000
commit8bf22adb246bc7828d7aabe2077ded6993f79398 (patch)
tree52da3768751fffdfee0e041a23bcac146efaceda
parentRefactoring Whirlpool (diff)
downloadBouncyCastle.NET-ed25519-8bf22adb246bc7828d7aabe2077ded6993f79398.tar.xz
move KEMExtractor to KemExtractor
-rw-r--r--crypto/src/pqc/crypto/ntruprime/NtruPrimeKemExtractor.cs4
-rw-r--r--crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/pqc/crypto/ntruprime/NtruPrimeKemExtractor.cs b/crypto/src/pqc/crypto/ntruprime/NtruPrimeKemExtractor.cs
index 9e3c65b10..7ae67db50 100644
--- a/crypto/src/pqc/crypto/ntruprime/NtruPrimeKemExtractor.cs
+++ b/crypto/src/pqc/crypto/ntruprime/NtruPrimeKemExtractor.cs
@@ -3,12 +3,12 @@ using Org.BouncyCastle.Pqc.Crypto.Frodo;
 
 namespace Org.BouncyCastle.Pqc.Crypto.NtruPrime
 {
-    public class NtruPrimeKEMExtractor : IEncapsulatedSecretExtractor
+    public class NtruPrimeKemExtractor : IEncapsulatedSecretExtractor
     {
         private NtruPrimeEngine _pEngine;
         private NtruPrimeKeyParameters _pKey;
 
-        public NtruPrimeKEMExtractor(NtruPrimeKeyParameters privParams)
+        public NtruPrimeKemExtractor(NtruPrimeKeyParameters privParams)
         {
             this._pKey = privParams;
             InitCipher(_pKey.Parameters);
diff --git a/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs b/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs
index 29d5292fa..f42135674 100644
--- a/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs
+++ b/crypto/test/src/pqc/crypto/test/NtruPrimeVectorTest.cs
@@ -122,7 +122,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests
                             Assert.True(Arrays.AreEqual(ss, secret), name + " " + count + ": kem_enc secret");
                             
                             // Decapsulation
-                            NtruPrimeKEMExtractor ntruDecCipher = new NtruPrimeKEMExtractor(privParams);
+                            NtruPrimeKemExtractor ntruDecCipher = new NtruPrimeKemExtractor(privParams);
                             byte[] dec_key = ntruDecCipher.ExtractSecret(generatedCT);
                             
                             // Check decapsulation secret