From 525129e163323f739636eed10af888f633390417 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 26 Mar 2015 16:39:04 +0700 Subject: Retain the OID actually used when initialized by keysize - Thanks to Kyle Hamilton for the patch (see bcgit/bc-csharp#16) --- crypto/src/crypto/generators/ECKeyPairGenerator.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/src') diff --git a/crypto/src/crypto/generators/ECKeyPairGenerator.cs b/crypto/src/crypto/generators/ECKeyPairGenerator.cs index 6e777c74c..d4afff750 100644 --- a/crypto/src/crypto/generators/ECKeyPairGenerator.cs +++ b/crypto/src/crypto/generators/ECKeyPairGenerator.cs @@ -78,6 +78,7 @@ namespace Org.BouncyCastle.Crypto.Generators X9ECParameters ecps = FindECCurveByOid(oid); + this.publicKeyParamSet = oid; this.parameters = new ECDomainParameters( ecps.Curve, ecps.G, ecps.N, ecps.H, ecps.GetSeed()); } -- cgit 1.5.1