summary refs log tree commit diff
path: root/crypto/test/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 16:15:42 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 16:15:42 +0700
commit70b47a3c76303a3af17c9ed635f7f1fa8a78ad18 (patch)
treea447b19f4ca05e728ea48bc24d5b369f01ab75ca /crypto/test/src
parentRefactoring in Asn1.Nist (diff)
downloadBouncyCastle.NET-ed25519-70b47a3c76303a3af17c9ed635f7f1fa8a78ad18.tar.xz
Refactoring in Asn1.Oiw
Diffstat (limited to 'crypto/test/src')
-rw-r--r--crypto/test/src/test/ElGamalTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/test/src/test/ElGamalTest.cs b/crypto/test/src/test/ElGamalTest.cs
index 293c0c37e..54e26a192 100644
--- a/crypto/test/src/test/ElGamalTest.cs
+++ b/crypto/test/src/test/ElGamalTest.cs
@@ -300,7 +300,7 @@ namespace Org.BouncyCastle.Tests
 
 //			AlgorithmParameters a2 = AlgorithmParameters.getInstance("ElGamal");
 //			a2.init(encodeParams);
-			ElGamalParameter elP = new ElGamalParameter((Asn1Sequence) Asn1Object.FromByteArray(encodeParams));
+			ElGamalParameter elP = ElGamalParameter.GetInstance(encodeParams);
 			ElGamalParameters p2 = new ElGamalParameters(elP.P, elP.G);
 
 			// a and a2 should be equivalent!