8 writes to Curve
Microsoft.AspNetCore.Identity (1)
Passkeys\CredentialPublicKey.cs (1)
158
ecParams.
Curve
= MapCoseCrvToECCurve(crv);
System.Security.Cryptography (7)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (1)
495
parameters.
Curve
= curve;
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (2)
107
Curve
= algorithm.Curve,
175
Curve
= algorithm.Curve,
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (2)
87
parameters.
Curve
= ECCurve.CreateFromValue(keyOidValueName);
243
parameters.
Curve
= ECCurve.CreateFromValue(curveName);
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
150
Curve
= GetCurve(domainParameters),
200
Curve
= GetCurve(domainParameters),
80 references to Curve
System.Security.Cryptography (80)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (1)
471
ECCurve curve = parameters.
Curve
;
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (3)
219
if (!ecParameters.
Curve
.IsNamed ||
220
(ecParameters.
Curve
.Oid.Value != _algorithm.CurveOidValue && ecParameters.
Curve
.Oid.FriendlyName != _algorithm.CurveOid.FriendlyName))
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\EccKeyFormatHelper.cs (19)
510
if (ecParameters.
Curve
.IsNamed)
512
Oid oid = ecParameters.
Curve
.Oid;
523
else if (ecParameters.
Curve
.IsExplicit)
525
Debug.Assert(ecParameters.
Curve
.IsPrime || ecParameters.
Curve
.IsCharacteristic2);
531
SR.Format(SR.Cryptography_CurveNotSupported, ecParameters.
Curve
.CurveType.ToString()));
543
if (ecParameters.
Curve
.IsCharacteristic2)
560
if (ecParameters.
Curve
.IsPrime)
563
writer.WriteIntegerUnsigned(ecParameters.
Curve
.Prime);
567
Debug.Assert(ecParameters.
Curve
.IsCharacteristic2);
608
WriteCurve(ecParameters.
Curve
, writer);
614
writer.WriteIntegerUnsigned(ecParameters.
Curve
.Order);
617
if (ecParameters.
Curve
.Cofactor != null)
619
writer.WriteIntegerUnsigned(ecParameters.
Curve
.Cofactor);
635
byte[] polynomial = ecParameters.
Curve
.Polynomial!;
746
int basePointLength = ecParameters.
Curve
.G.X!.Length * 2 + 1;
760
ecParameters.
Curve
.G.X.CopyTo(basePointBytes.Slice(1));
761
ecParameters.
Curve
.G.Y.CopyTo(basePointBytes.Slice(1 + ecParameters.
Curve
.G.X.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)
202
if (aParameters.
Curve
.CurveType != bParameters.
Curve
.CurveType)
211
ECCurve aCurve = aParameters.
Curve
;
212
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!;