diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-26 16:39:04 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-26 16:39:04 +0700 |
commit | 525129e163323f739636eed10af888f633390417 (patch) | |
tree | 1d675eb2ab37bcb079226492350b22203f799ad3 /crypto/src | |
parent | Merge branch 'jstedfast-smime-capabilities' (diff) | |
download | BouncyCastle.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)
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/generators/ECKeyPairGenerator.cs | 1 |
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()); } |