4 writes to Curve
System.Security.Cryptography (4)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (1)
291
parameters.
Curve
= curve;
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (2)
171
Curve
= GetCurve(domainParameters),
221
Curve
= GetCurve(domainParameters),
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (1)
87
parameters.
Curve
= ECCurve.CreateFromValue(keyOidValueName);
77 references to Curve
System.Security.Cryptography (77)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (1)
267
var curve = parameters.
Curve
;
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (19)
531
if (ecParameters.
Curve
.IsNamed)
533
Oid oid = ecParameters.
Curve
.Oid;
544
else if (ecParameters.
Curve
.IsExplicit)
546
Debug.Assert(ecParameters.
Curve
.IsPrime || ecParameters.
Curve
.IsCharacteristic2);
552
SR.Format(SR.Cryptography_CurveNotSupported, ecParameters.
Curve
.CurveType.ToString()));
564
if (ecParameters.
Curve
.IsCharacteristic2)
581
if (ecParameters.
Curve
.IsPrime)
584
writer.WriteIntegerUnsigned(ecParameters.
Curve
.Prime);
588
Debug.Assert(ecParameters.
Curve
.IsCharacteristic2);
629
WriteCurve(ecParameters.
Curve
, writer);
635
writer.WriteIntegerUnsigned(ecParameters.
Curve
.Order);
638
if (ecParameters.
Curve
.Cofactor != null)
640
writer.WriteIntegerUnsigned(ecParameters.
Curve
.Cofactor);
656
byte[] polynomial = ecParameters.
Curve
.Polynomial!;
767
int basePointLength = ecParameters.
Curve
.G.X!.Length * 2 + 1;
781
ecParameters.
Curve
.G.X.CopyTo(basePointBytes.Slice(1));
782
ecParameters.
Curve
.G.Y.CopyTo(basePointBytes.Slice(1 + ecParameters.
Curve
.G.X.Length));
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (46)
21
if (parameters.
Curve
.IsPrime)
25
else if (parameters.
Curve
.IsCharacteristic2)
29
else if (parameters.
Curve
.IsNamed)
36
SR.Format(SR.Cryptography_CurveNotSupported, parameters.
Curve
.CurveType.ToString()));
109
Debug.Assert(parameters.
Curve
.IsNamed);
112
string oid = !string.IsNullOrEmpty(parameters.
Curve
.Oid.Value) ?
113
parameters.
Curve
.Oid.Value : parameters.
Curve
.Oid.FriendlyName!;
126
Debug.Assert(parameters.
Curve
.IsPrime);
128
parameters.
Curve
.CurveType,
132
parameters.
Curve
.Prime!, parameters.
Curve
.Prime!.Length,
133
parameters.
Curve
.A!, parameters.
Curve
.A!.Length,
134
parameters.
Curve
.B!, parameters.
Curve
.B!.Length,
135
parameters.
Curve
.G.X!, parameters.
Curve
.G.X!.Length,
136
parameters.
Curve
.G.Y!, parameters.
Curve
.G.Y!.Length,
137
parameters.
Curve
.Order!, parameters.
Curve
.Order!.Length,
138
parameters.
Curve
.Cofactor, parameters.
Curve
.Cofactor!.Length,
139
parameters.
Curve
.Seed, parameters.
Curve
.Seed == null ? 0 : parameters.
Curve
.Seed.Length);
146
Debug.Assert(parameters.
Curve
.IsCharacteristic2);
148
parameters.
Curve
.CurveType,
152
parameters.
Curve
.Polynomial!, parameters.
Curve
.Polynomial!.Length,
153
parameters.
Curve
.A!, parameters.
Curve
.A!.Length,
154
parameters.
Curve
.B!, parameters.
Curve
.B!.Length,
155
parameters.
Curve
.G.X!, parameters.
Curve
.G.X!.Length,
156
parameters.
Curve
.G.Y!, parameters.
Curve
.G.Y!.Length,
157
parameters.
Curve
.Order!, parameters.
Curve
.Order!.Length,
158
parameters.
Curve
.Cofactor, parameters.
Curve
.Cofactor!.Length,
159
parameters.
Curve
.Seed, parameters.
Curve
.Seed == null ? 0 : parameters.
Curve
.Seed.Length);
System\Security\Cryptography\ECParameters.cs (4)
43
if (
Curve
.IsExplicit)
46
hasErrors = (D != null && (D.Length !=
Curve
.Order!.Length));
48
else if (
Curve
.IsNamed && Q.X != null)
61
Curve
.Validate();
System\Security\Cryptography\Helpers.cs (4)
195
if (aParameters.
Curve
.CurveType != bParameters.
Curve
.CurveType)
204
ECCurve aCurve = aParameters.
Curve
;
205
ECCurve bCurve = bParameters.
Curve
;
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (3)
73
if (!ecParameters.
Curve
.IsNamed)
78
string? curveOid = ecParameters.
Curve
.Oid.Value;
83
string friendlyName = ecParameters.
Curve
.Oid.FriendlyName!;