From 107daf377cc04709860ba0a87d582d4ce9d74a2f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 1 Aug 2019 15:26:17 +0700 Subject: Fix warnings --- crypto/test/src/crypto/test/SCryptTest.cs | 2 +- crypto/test/src/test/NamedCurveTest.cs | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'crypto/test/src') diff --git a/crypto/test/src/crypto/test/SCryptTest.cs b/crypto/test/src/crypto/test/SCryptTest.cs index 82bc60880..f236c4bf0 100644 --- a/crypto/test/src/crypto/test/SCryptTest.cs +++ b/crypto/test/src/crypto/test/SCryptTest.cs @@ -65,7 +65,7 @@ namespace Org.BouncyCastle.Crypto.Tests SCrypt.Generate(pass, salt, N, r, p, len); Fail(msg); } - catch (ArgumentException e) + catch (ArgumentException) { //Console.Error.WriteLine(e.StackTrace); } diff --git a/crypto/test/src/test/NamedCurveTest.cs b/crypto/test/src/test/NamedCurveTest.cs index f7c831f17..5dec49c41 100644 --- a/crypto/test/src/test/NamedCurveTest.cs +++ b/crypto/test/src/test/NamedCurveTest.cs @@ -251,15 +251,15 @@ namespace Org.BouncyCastle.Tests // Current test cases don't work for GOST34.10 2012 return; - keyAlgorithm = "ECGOST3410-2012"; - if (name.IndexOf("256") > 0) - { - sgr = SignerUtilities.GetSigner("ECGOST3410-2012-256"); - } - else - { - sgr = SignerUtilities.GetSigner("ECGOST3410-2012-512"); - } + //keyAlgorithm = "ECGOST3410-2012"; + //if (name.IndexOf("256") > 0) + //{ + // sgr = SignerUtilities.GetSigner("ECGOST3410-2012-256"); + //} + //else + //{ + // sgr = SignerUtilities.GetSigner("ECGOST3410-2012-512"); + //} } else { -- cgit 1.5.1