summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-03-26 16:39:04 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-03-26 16:39:04 +0700
commit525129e163323f739636eed10af888f633390417 (patch)
tree1d675eb2ab37bcb079226492350b22203f799ad3
parentMerge branch 'jstedfast-smime-capabilities' (diff)
downloadBouncyCastle.NET-ed25519-525129e163323f739636eed10af888f633390417.tar.xz
Retain the OID actually used when initialized by keysize
- Thanks to Kyle Hamilton for the patch (see bcgit/bc-csharp#16)
-rw-r--r--crypto/src/crypto/generators/ECKeyPairGenerator.cs1
1 files changed, 1 insertions, 0 deletions
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());
             }