summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-09-16 15:12:49 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-09-16 15:12:49 +0700
commit65aabb84f67f3f726a6b7e08c73bdd58aa6b8425 (patch)
tree4f70fa6efce45798afa7f051e5d76ec1abf67fe3
parentPort of SM2Signer from Java (diff)
downloadBouncyCastle.NET-ed25519-65aabb84f67f3f726a6b7e08c73bdd58aa6b8425.tar.xz
SM2 signing cleanup
-rw-r--r--crypto/src/crypto/signers/SM2Signer.cs2
-rw-r--r--crypto/test/src/crypto/test/SM2SignerTest.cs1
2 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/crypto/signers/SM2Signer.cs b/crypto/src/crypto/signers/SM2Signer.cs
index c5a5981d8..8151e6be0 100644
--- a/crypto/src/crypto/signers/SM2Signer.cs
+++ b/crypto/src/crypto/signers/SM2Signer.cs
@@ -28,7 +28,7 @@ namespace Org.BouncyCastle.Crypto.Signers
 
         public virtual string AlgorithmName
         {
-            get { return "SM2"; }
+            get { return "SM2Sign"; }
         }
 
         public virtual void Init(bool forSigning, ICipherParameters parameters)
diff --git a/crypto/test/src/crypto/test/SM2SignerTest.cs b/crypto/test/src/crypto/test/SM2SignerTest.cs
index a79793016..5904c95a7 100644
--- a/crypto/test/src/crypto/test/SM2SignerTest.cs
+++ b/crypto/test/src/crypto/test/SM2SignerTest.cs
@@ -4,7 +4,6 @@ using System.IO;
 using NUnit.Framework;
 
 using Org.BouncyCastle.Asn1;
-using Org.BouncyCastle.Crypto;
 using Org.BouncyCastle.Crypto.Generators;
 using Org.BouncyCastle.Crypto.Parameters;
 using Org.BouncyCastle.Crypto.Signers;