diff options
-rw-r--r-- | crypto/src/pqc/crypto/falcon/FalconPrivateKeyParameters.cs | 2 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/falcon/FalconPublicKeyParameters.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/pqc/crypto/test/FalconTest.cs | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/crypto/src/pqc/crypto/falcon/FalconPrivateKeyParameters.cs b/crypto/src/pqc/crypto/falcon/FalconPrivateKeyParameters.cs index 448ba7275..d30aafcf4 100644 --- a/crypto/src/pqc/crypto/falcon/FalconPrivateKeyParameters.cs +++ b/crypto/src/pqc/crypto/falcon/FalconPrivateKeyParameters.cs @@ -8,8 +8,6 @@ namespace Org.BouncyCastle.Pqc.Crypto.Falcon { private byte[] privateKey; - public byte[] PrivateKey => Arrays.Clone(privateKey); - public FalconPrivateKeyParameters(FalconParameters parameters, byte[] sk_encoded) : base(true, parameters) { diff --git a/crypto/src/pqc/crypto/falcon/FalconPublicKeyParameters.cs b/crypto/src/pqc/crypto/falcon/FalconPublicKeyParameters.cs index dace2e60f..58eaa036e 100644 --- a/crypto/src/pqc/crypto/falcon/FalconPublicKeyParameters.cs +++ b/crypto/src/pqc/crypto/falcon/FalconPublicKeyParameters.cs @@ -7,8 +7,6 @@ namespace Org.BouncyCastle.Pqc.Crypto.Falcon { private byte[] publicKey; - public byte[] PublicKey => Arrays.Clone(publicKey); - public FalconPublicKeyParameters(FalconParameters parameters, byte[] pk_encoded) : base(false, parameters) { diff --git a/crypto/test/src/pqc/crypto/test/FalconTest.cs b/crypto/test/src/pqc/crypto/test/FalconTest.cs index 0c73dfcfd..bcda32669 100644 --- a/crypto/test/src/pqc/crypto/test/FalconTest.cs +++ b/crypto/test/src/pqc/crypto/test/FalconTest.cs @@ -11,6 +11,7 @@ using Org.BouncyCastle.Utilities.Test; namespace Org.BouncyCastle.Pqc.Crypto.Tests { + [TestFixture] public class FalconTest { [Test] @@ -24,6 +25,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests FalconParameters.falcon_1024 }; + TestSampler sampler = new TestSampler(); for (int fileIndex = 0; fileIndex < files.Length; fileIndex++) { string name = files[fileIndex]; Console.Write("testing: " + name); @@ -40,7 +42,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests } if (line.Length == 0) { - if (buf.Count > 0) + if (buf.Count > 0 && !sampler.SkipTest(buf["count"])) { string count = buf["count"]; Console.Write("test case: " + count); |