diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-27 23:03:19 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-27 23:03:19 +0700 |
commit | 739c0024b2677dcf16cac9c268a2124de47e8efb (patch) | |
tree | b8308ef9185ed1442a824c94313eed1fb3b1cea8 /crypto/test | |
parent | Refactoring in Math.EC.Rfc8032 (diff) | |
download | BouncyCastle.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.cs | 6 | ||||
-rw-r--r-- | crypto/test/src/math/ec/rfc8032/test/Ed448Test.cs | 4 |
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); { |