summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-06-06 20:08:57 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-06-06 20:08:57 +0700
commitbea54d9e469082225cd81ad28d55a0bce75b1402 (patch)
treeca5f135f763ef3177cf1c33639ab5573e0722402 /crypto/test
parentMerge remote-tracking branch 'origin/master' (diff)
downloadBouncyCastle.NET-ed25519-bea54d9e469082225cd81ad28d55a0bce75b1402.tar.xz
Improve EdDSA/XDH key validation
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/crypto/test/Ed25519Test.cs4
-rw-r--r--crypto/test/src/crypto/test/Ed448Test.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/test/src/crypto/test/Ed25519Test.cs b/crypto/test/src/crypto/test/Ed25519Test.cs
index 516574bc3..d771a8c01 100644
--- a/crypto/test/src/crypto/test/Ed25519Test.cs
+++ b/crypto/test/src/crypto/test/Ed25519Test.cs
@@ -54,9 +54,9 @@ namespace Org.BouncyCastle.Crypto.Tests
         private void BasicSigTest()
         {
             Ed25519PrivateKeyParameters privateKey = new Ed25519PrivateKeyParameters(
-                Hex.DecodeStrict("9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60"), 0);
+                Hex.DecodeStrict("9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60"));
             Ed25519PublicKeyParameters publicKey = new Ed25519PublicKeyParameters(
-                Hex.DecodeStrict("d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a"), 0);
+                Hex.DecodeStrict("d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a"));
 
             byte[] sig = Hex.Decode("e5564300c360ac729086e2cc806e828a84877f1eb8e5d974d873e065224901555fb8821590a33bacc61e39701cf9b46bd25bf5f0595bbe24655141438e7a100b");
 
diff --git a/crypto/test/src/crypto/test/Ed448Test.cs b/crypto/test/src/crypto/test/Ed448Test.cs
index 114a31714..bfd9d09f9 100644
--- a/crypto/test/src/crypto/test/Ed448Test.cs
+++ b/crypto/test/src/crypto/test/Ed448Test.cs
@@ -56,12 +56,12 @@ namespace Org.BouncyCastle.Crypto.Tests
                     "6c82a562cb808d10d632be89c8513ebf" +
                     "6c929f34ddfa8c9f63c9960ef6e348a3" +
                     "528c8a3fcc2f044e39a3fc5b94492f8f" +
-                    "032e7549a20098f95b"), 0);
+                    "032e7549a20098f95b"));
             Ed448PublicKeyParameters publicKey = new Ed448PublicKeyParameters(
                 Hex.DecodeStrict("5fd7449b59b461fd2ce787ec616ad46a" +
                     "1da1342485a70e1f8a0ea75d80e96778" +
                     "edf124769b46c7061bd6783df1e50f6c" +
-                    "d1fa1abeafe8256180"), 0);
+                    "d1fa1abeafe8256180"));
 
             byte[] sig = Hex.DecodeStrict("533a37f6bbe457251f023c0d88f976ae" +
                 "2dfb504a843e34d2074fd823d41a591f" +