summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-27 23:03:19 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-27 23:03:19 +0700
commit739c0024b2677dcf16cac9c268a2124de47e8efb (patch)
treeb8308ef9185ed1442a824c94313eed1fb3b1cea8 /crypto/test
parentRefactoring in Math.EC.Rfc8032 (diff)
downloadBouncyCastle.NET-ed25519-739c0024b2677dcf16cac9c268a2124de47e8efb.tar.xz
EdDSA: match API to bc-java
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs6
-rw-r--r--crypto/test/src/math/ec/rfc8032/test/Ed448Test.cs4
2 files changed, 5 insertions, 5 deletions
diff --git a/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs b/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs
index 4155d4a0f..e298ef2e1 100644
--- a/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs
+++ b/crypto/test/src/math/ec/rfc8032/test/Ed25519Test.cs
@@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032.Tests
             for (int i = 0; i < 10; ++i)
             {
 				Random.NextBytes(sk);
-                Ed25519.GeneratePublicKey(sk, 0, out var publicPoint);
+                var publicPoint = Ed25519.GeneratePublicKey(sk, 0);
                 Ed25519.EncodePublicPoint(publicPoint, pk, 0);
 
                 {
@@ -95,7 +95,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032.Tests
             for (int i = 0; i < 10; ++i)
             {
                 Random.NextBytes(sk);
-                Ed25519.GeneratePublicKey(sk, 0, out var publicPoint);
+                var publicPoint = Ed25519.GeneratePublicKey(sk, 0);
                 Ed25519.EncodePublicPoint(publicPoint, pk, 0);
 
                 {
@@ -155,7 +155,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032.Tests
             for (int i = 0; i < 10; ++i)
             {
                 Random.NextBytes(sk);
-                Ed25519.GeneratePublicKey(sk, 0, out var publicPoint);
+                var publicPoint = Ed25519.GeneratePublicKey(sk, 0);
                 Ed25519.EncodePublicPoint(publicPoint, pk, 0);
 
                 {
diff --git a/crypto/test/src/math/ec/rfc8032/test/Ed448Test.cs b/crypto/test/src/math/ec/rfc8032/test/Ed448Test.cs
index 38cde3b01..406325951 100644
--- a/crypto/test/src/math/ec/rfc8032/test/Ed448Test.cs
+++ b/crypto/test/src/math/ec/rfc8032/test/Ed448Test.cs
@@ -35,7 +35,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032.Tests
             for (int i = 0; i < 10; ++i)
             {
                 Random.NextBytes(sk);
-                Ed448.GeneratePublicKey(sk, 0, out var publicPoint);
+                var publicPoint = Ed448.GeneratePublicKey(sk, 0);
                 Ed448.EncodePublicPoint(publicPoint, pk, 0);
 
                 {
@@ -95,7 +95,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032.Tests
             for (int i = 0; i < 10; ++i)
             {
                 Random.NextBytes(sk);
-                Ed448.GeneratePublicKey(sk, 0, out var publicPoint);
+                var publicPoint = Ed448.GeneratePublicKey(sk, 0);
                 Ed448.EncodePublicPoint(publicPoint, pk, 0);
 
                 {