summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-16 00:02:10 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-16 00:02:10 +0700
commit08e9f2e9aaaf55bd93f3a7e8aa4c148dca4c3c97 (patch)
treefc99dd883986fc01725330af75a9f4f12ce271dd
parentMove/rename files (diff)
downloadBouncyCastle.NET-ed25519-08e9f2e9aaaf55bd93f3a7e8aa4c148dca4c3c97.tar.xz
EC public keys pick up OID from named parameters
-rw-r--r--crypto/src/crypto/parameters/ECKeyParameters.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/src/crypto/parameters/ECKeyParameters.cs b/crypto/src/crypto/parameters/ECKeyParameters.cs
index ed8537f3d..b015433ab 100644
--- a/crypto/src/crypto/parameters/ECKeyParameters.cs
+++ b/crypto/src/crypto/parameters/ECKeyParameters.cs
@@ -40,6 +40,7 @@ namespace Org.BouncyCastle.Crypto.Parameters
 
             this.algorithm = VerifyAlgorithmName(algorithm);
             this.parameters = parameters;
+            this.publicKeyParamSet = (parameters as ECNamedDomainParameters)?.Name;
         }
 
         protected ECKeyParameters(