summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-07-18 00:37:15 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-07-18 00:37:15 +0700
commit05aabf97882be003a69f7d9e47012c3dd0338a7b (patch)
tree11c54d265a4eb89a1eb474ca2754eb5defc0b687
parentStraighten out ECGOST3410NamedCurves (diff)
downloadBouncyCastle.NET-ed25519-05aabf97882be003a69f7d9e47012c3dd0338a7b.tar.xz
Remove unused code
-rw-r--r--crypto/src/asn1/gm/GMNamedCurves.cs1
-rw-r--r--crypto/src/crypto/ec/CustomNamedCurves.cs5
-rw-r--r--crypto/src/util/encoders/Hex.cs1
3 files changed, 0 insertions, 7 deletions
diff --git a/crypto/src/asn1/gm/GMNamedCurves.cs b/crypto/src/asn1/gm/GMNamedCurves.cs
index 97485e258..866733cc6 100644
--- a/crypto/src/asn1/gm/GMNamedCurves.cs
+++ b/crypto/src/asn1/gm/GMNamedCurves.cs
@@ -4,7 +4,6 @@ using System.Collections;
 using Org.BouncyCastle.Asn1.X9;
 using Org.BouncyCastle.Math;
 using Org.BouncyCastle.Math.EC;
-using Org.BouncyCastle.Math.EC.Endo;
 using Org.BouncyCastle.Math.EC.Multiplier;
 using Org.BouncyCastle.Utilities;
 using Org.BouncyCastle.Utilities.Collections;
diff --git a/crypto/src/crypto/ec/CustomNamedCurves.cs b/crypto/src/crypto/ec/CustomNamedCurves.cs
index a508a4252..0eee66a33 100644
--- a/crypto/src/crypto/ec/CustomNamedCurves.cs
+++ b/crypto/src/crypto/ec/CustomNamedCurves.cs
@@ -41,11 +41,6 @@ namespace Org.BouncyCastle.Crypto.EC
             return c.Configure().SetEndomorphism(new GlvTypeBEndomorphism(c, p)).Create();
         }
 
-        private static BigInteger FromHex(string hex)
-        {
-            return new BigInteger(1, Hex.DecodeStrict(hex));
-        }
-
         /*
          * curve25519
          */
diff --git a/crypto/src/util/encoders/Hex.cs b/crypto/src/util/encoders/Hex.cs
index dc4871352..0b2a48995 100644
--- a/crypto/src/util/encoders/Hex.cs
+++ b/crypto/src/util/encoders/Hex.cs
@@ -1,6 +1,5 @@
 using System;
 using System.IO;
-using System.Text;
 
 namespace Org.BouncyCastle.Utilities.Encoders
 {