summary refs log tree commit diff
path: root/crypto/src/x509
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/x509
parentRemove legacy TLS (diff)
downloadBouncyCastle.NET-ed25519-7ca8774497c8e5c46fb67369909d4d9a87cbeb3f.tar.xz
Remove per-ECPoint compression
Diffstat (limited to 'crypto/src/x509')
-rw-r--r--crypto/src/x509/SubjectPublicKeyInfoFactory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/x509/SubjectPublicKeyInfoFactory.cs b/crypto/src/x509/SubjectPublicKeyInfoFactory.cs
index 696f3ff18..d085601e3 100644
--- a/crypto/src/x509/SubjectPublicKeyInfoFactory.cs
+++ b/crypto/src/x509/SubjectPublicKeyInfoFactory.cs
@@ -168,7 +168,8 @@ namespace Org.BouncyCastle.X509
                     if (_key.PublicKeyParamSet == null)
                     {
                         ECDomainParameters kp = _key.Parameters;
-                        X9ECParameters ecP = new X9ECParameters(kp.Curve, kp.G, kp.N, kp.H, kp.GetSeed());
+                        X9ECParameters ecP = new X9ECParameters(kp.Curve, new X9ECPoint(kp.G, false), kp.N, kp.H,
+                            kp.GetSeed());
 
                         x962 = new X962Parameters(ecP);
                     }