summary refs log tree commit diff
path: root/crypto/src/pkcs/PrivateKeyInfoFactory.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@gmail.com>2022-06-21 21:14:47 +0700
committerPeter Dettman <peter.dettman@gmail.com>2022-06-21 21:14:47 +0700
commit7ca8774497c8e5c46fb67369909d4d9a87cbeb3f (patch)
treee7ab545ca1b51d48f3506ccbf310c34275d2f8ac /crypto/src/pkcs/PrivateKeyInfoFactory.cs
parentRemove legacy TLS (diff)
downloadBouncyCastle.NET-ed25519-7ca8774497c8e5c46fb67369909d4d9a87cbeb3f.tar.xz
Remove per-ECPoint compression
Diffstat (limited to 'crypto/src/pkcs/PrivateKeyInfoFactory.cs')
-rw-r--r--crypto/src/pkcs/PrivateKeyInfoFactory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/pkcs/PrivateKeyInfoFactory.cs b/crypto/src/pkcs/PrivateKeyInfoFactory.cs
index 0d5026909..f610c1406 100644
--- a/crypto/src/pkcs/PrivateKeyInfoFactory.cs
+++ b/crypto/src/pkcs/PrivateKeyInfoFactory.cs
@@ -170,7 +170,8 @@ namespace Org.BouncyCastle.Pkcs
                     X962Parameters x962;
                     if (priv.PublicKeyParamSet == null)
                     {
-                        X9ECParameters ecP = new X9ECParameters(dp.Curve, dp.G, dp.N, dp.H, dp.GetSeed());
+                        X9ECParameters ecP = new X9ECParameters(dp.Curve, new X9ECPoint(dp.G, false), dp.N, dp.H,
+                            dp.GetSeed());
                         x962 = new X962Parameters(ecP);
                     }
                     else