diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-16 00:02:10 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-16 00:02:10 +0700 |
commit | 08e9f2e9aaaf55bd93f3a7e8aa4c148dca4c3c97 (patch) | |
tree | fc99dd883986fc01725330af75a9f4f12ce271dd | |
parent | Move/rename files (diff) | |
download | BouncyCastle.NET-ed25519-08e9f2e9aaaf55bd93f3a7e8aa4c148dca4c3c97.tar.xz |
EC public keys pick up OID from named parameters
-rw-r--r-- | crypto/src/crypto/parameters/ECKeyParameters.cs | 1 |
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( |