summary refs log tree commit diff
diff options
context:
space:
mode:
authororeste <oreste.panaia-costa@keyfactor.com>2022-09-13 22:13:33 +0200
committeroreste <oreste.panaia-costa@keyfactor.com>2022-09-13 22:13:33 +0200
commite4b6be05853f73bb13f1a10c4dd2cad8deac1097 (patch)
tree871f2b6a2f372d3d9bf7afa9efe5f213850a250a
parentfirst cut of Dilithium (diff)
downloadBouncyCastle.NET-ed25519-e4b6be05853f73bb13f1a10c4dd2cad8deac1097.tar.xz
cleanup
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/DilithiumEngine.cs9
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/DilithiumKeyPairGenerator.cs1
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs3
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/DilithiumSigner.cs4
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/Ntt.cs9
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/Packing.cs9
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/Poly.cs6
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/PolyVecK.cs4
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/PolyVecL.cs4
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/PolyVecMatrix.cs4
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/Reduce.cs4
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/Rounding.cs4
-rw-r--r--crypto/src/pqc/crypto/crystals/dilithium/Symmetric.cs5
13 files changed, 4 insertions, 62 deletions
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumEngine.cs b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumEngine.cs
index 6cc3bca53..2bf54008b 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumEngine.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumEngine.cs
@@ -1,14 +1,7 @@
 using Org.BouncyCastle.Crypto.Digests;
 using Org.BouncyCastle.Security;
 using Org.BouncyCastle.Utilities;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Reflection.Emit;
-using System.Security.Cryptography;
-using System.Text;
-using System.Threading.Tasks;
-using static Org.BouncyCastle.Tls.DtlsReliableHandshake;
+
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumKeyPairGenerator.cs b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumKeyPairGenerator.cs
index 57e2e3629..7a71f3fd1 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumKeyPairGenerator.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumKeyPairGenerator.cs
@@ -1,6 +1,5 @@
 
 using Org.BouncyCastle.Crypto;
-using Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium;
 using Org.BouncyCastle.Security;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs
index 48c697b55..51d9cb853 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumParameters.cs
@@ -1,8 +1,5 @@
 
-using System;
 using Org.BouncyCastle.Crypto;
-using Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium;
-using Org.BouncyCastle.Security;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumSigner.cs b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumSigner.cs
index 3c7ad7d60..95ca3be1f 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/DilithiumSigner.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/DilithiumSigner.cs
@@ -1,10 +1,6 @@
 using Org.BouncyCastle.Crypto;
-using Org.BouncyCastle.Crypto.Engines;
 using Org.BouncyCastle.Crypto.Parameters;
-using Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium;
 using Org.BouncyCastle.Security;
-using Org.BouncyCastle.Utilities;
-using System;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/Ntt.cs b/crypto/src/pqc/crypto/crystals/dilithium/Ntt.cs
index 5ca7f8b6b..ba19dd86e 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/Ntt.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/Ntt.cs
@@ -1,10 +1,5 @@
-using Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium;
-using Org.BouncyCastle.Utilities;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using Org.BouncyCastle.Utilities;
+
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/Packing.cs b/crypto/src/pqc/crypto/crystals/dilithium/Packing.cs
index caed99a30..25f2beb8a 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/Packing.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/Packing.cs
@@ -1,11 +1,4 @@
-using Org.BouncyCastle.Pqc.Crypto.SphincsPlus;
-using Org.BouncyCastle.Utilities;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Security.Cryptography.X509Certificates;
-using System.Text;
-using System.Threading.Tasks;
+using Org.BouncyCastle.Utilities;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/Poly.cs b/crypto/src/pqc/crypto/crystals/dilithium/Poly.cs
index 8ee9676e3..f5a6743df 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/Poly.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/Poly.cs
@@ -1,10 +1,4 @@
 using Org.BouncyCastle.Crypto.Digests;
-using Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/PolyVecK.cs b/crypto/src/pqc/crypto/crystals/dilithium/PolyVecK.cs
index 506200936..21718c611 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/PolyVecK.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/PolyVecK.cs
@@ -1,8 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/PolyVecL.cs b/crypto/src/pqc/crypto/crystals/dilithium/PolyVecL.cs
index 75309b374..67cf4e9f2 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/PolyVecL.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/PolyVecL.cs
@@ -1,8 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/PolyVecMatrix.cs b/crypto/src/pqc/crypto/crystals/dilithium/PolyVecMatrix.cs
index 4f3868239..c899850f5 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/PolyVecMatrix.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/PolyVecMatrix.cs
@@ -1,8 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/Reduce.cs b/crypto/src/pqc/crypto/crystals/dilithium/Reduce.cs
index 4efcdb49e..0deea4698 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/Reduce.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/Reduce.cs
@@ -1,8 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/Rounding.cs b/crypto/src/pqc/crypto/crystals/dilithium/Rounding.cs
index 625b60cf5..18f0fd7e7 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/Rounding.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/Rounding.cs
@@ -1,8 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {
diff --git a/crypto/src/pqc/crypto/crystals/dilithium/Symmetric.cs b/crypto/src/pqc/crypto/crystals/dilithium/Symmetric.cs
index 46d59a667..c866ccece 100644
--- a/crypto/src/pqc/crypto/crystals/dilithium/Symmetric.cs
+++ b/crypto/src/pqc/crypto/crystals/dilithium/Symmetric.cs
@@ -1,9 +1,4 @@
 using Org.BouncyCastle.Crypto.Digests;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace Org.BouncyCastle.Pqc.Crypto.Crystals.Dilithium
 {