2 instantiations of ECCurve
System.Security.Cryptography (2)
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
395
curve = new
ECCurve
403
curve = new
ECCurve
116 references to ECCurve
Microsoft.AspNetCore.Identity (4)
Passkeys\CredentialPublicKey.cs (4)
176
static
ECCurve
MapCoseCrvToECCurve(COSEEllipticCurve crv)
180
COSEEllipticCurve.P256 =>
ECCurve
.NamedCurves.nistP256,
181
COSEEllipticCurve.P384 =>
ECCurve
.NamedCurves.nistP384,
182
COSEEllipticCurve.P521 =>
ECCurve
.NamedCurves.nistP521,
Microsoft.AspNetCore.Identity.Test (5)
Passkeys\CredentialKeyPair.cs (5)
46
COSEAlgorithmIdentifier.ES256 => GenerateEcKeyPair(alg,
ECCurve
.NamedCurves.nistP256, COSEEllipticCurve.P256),
47
COSEAlgorithmIdentifier.ES384 => GenerateEcKeyPair(alg,
ECCurve
.NamedCurves.nistP384, COSEEllipticCurve.P384),
48
COSEAlgorithmIdentifier.ES512 => GenerateEcKeyPair(alg,
ECCurve
.NamedCurves.nistP521, COSEEllipticCurve.P521),
49
COSEAlgorithmIdentifier.ES256K => GenerateEcKeyPair(alg,
ECCurve
.CreateFromFriendlyName("secP256k1"), COSEEllipticCurve.P256K),
96
private static CredentialKeyPair GenerateEcKeyPair(COSEAlgorithmIdentifier alg,
ECCurve
curve, COSEEllipticCurve coseCurve)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
874
using (var ecdsa = ECDsa.Create(
ECCurve
.NamedCurves.nistP256))
netstandard (1)
netstandard.cs (1)
1871
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECCurve
))]
System.Core (1)
System.Core.cs (1)
217
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECCurve
))]
System.Security.Cryptography (98)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (10)
42
ECCurve
.ECCurveType curveType,
55
internal static SafeEcKeyHandle EcKeyCreateByExplicitCurve(
ECCurve
curve)
264
out
ECCurve
.ECCurveType curveType,
281
out
ECCurve
.ECCurveType curveType,
298
ECCurve
.ECCurveType curveType;
372
ECCurve
.ECCurveType curveType;
430
ECCurve
.ECCurveType curveType,
445
if (curveType ==
ECCurve
.ECCurveType.Characteristic2)
471
ECCurve
curve = parameters.Curve;
482
if (curveType ==
ECCurve
.ECCurveType.Characteristic2)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (7)
741
internal
ECCurve
Curve { get; }
756
ECCurve
curve,
782
ECCurve
.NamedCurves.nistP256,
794
ECCurve
.NamedCurves.nistP384,
806
ECCurve
.NamedCurves.nistP521,
818
ECCurve
.NamedCurves.brainpoolP256r1,
830
ECCurve
.NamedCurves.brainpoolP384r1,
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (2)
19
public ECDiffieHellmanOpenSsl(
ECCurve
curve)
83
public override void GenerateKey(
ECCurve
curve)
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (3)
23
/// <param name="curve">The <see cref="
ECCurve
"/> representing the curve.</param>
30
public ECDsaOpenSsl(
ECCurve
curve)
249
public override void GenerateKey(
ECCurve
curve)
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.cs (3)
13
public ECOpenSsl(
ECCurve
curve)
61
internal int GenerateKey(
ECCurve
curve)
125
internal static SafeEvpPKeyHandle GenerateECKey(
ECCurve
curve, out int keySize)
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (2)
87
parameters.Curve =
ECCurve
.CreateFromValue(keyOidValueName);
243
parameters.Curve =
ECCurve
.CreateFromValue(curveName);
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (3)
15
internal static Oid secp256r1Oid => field ??= new Oid(secp256r1, nameof(
ECCurve
.NamedCurves.nistP256));
16
internal static Oid secp384r1Oid => field ??= new Oid(secp384r1, nameof(
ECCurve
.NamedCurves.nistP384));
17
internal static Oid secp521r1Oid => field ??= new Oid(secp521r1, nameof(
ECCurve
.NamedCurves.nistP521));
System\Security\Cryptography\Cng.NotSupported.cs (2)
250
public ECDiffieHellmanCng(
ECCurve
curve)
319
public ECDsaCng(
ECCurve
curve)
System\Security\Cryptography\ECAlgorithm.cs (1)
78
public virtual void GenerateKey(
ECCurve
curve)
System\Security\Cryptography\EccKeyFormatHelper.cs (8)
237
private static
ECCurve
GetCurve(ECDomainParameters domainParameters)
256
return
ECCurve
.CreateFromOid(curveOid);
259
private static
ECCurve
GetSpecifiedECCurve(SpecifiedECDomain specifiedParameters)
271
private static
ECCurve
GetSpecifiedECCurveCore(SpecifiedECDomain specifiedParameters)
391
ECCurve
curve;
397
CurveType =
ECCurve
.ECCurveType.PrimeShortWeierstrass,
405
CurveType =
ECCurve
.ECCurveType.Characteristic2,
718
private static void WriteCurve(in
ECCurve
curve, AsnWriter writer)
System\Security\Cryptography\ECCurve.cs (13)
92
public static
ECCurve
CreateFromOid(Oid curveOid)
94
ECCurve
curve = default;
105
public static
ECCurve
CreateFromFriendlyName(string oidFriendlyName)
109
return
ECCurve
.CreateFromValueAndName(null, oidFriendlyName);
117
public static
ECCurve
CreateFromValue(string oidValue)
121
return
ECCurve
.CreateFromValueAndName(oidValue, null);
124
private static
ECCurve
CreateFromValueAndName(string? oidValue, string? oidFriendlyName)
140
return
ECCurve
.CreateFromOid(oid);
147
return CurveType ==
ECCurve
.ECCurveType.PrimeShortWeierstrass ||
148
CurveType ==
ECCurve
.ECCurveType.PrimeMontgomery ||
149
CurveType ==
ECCurve
.ECCurveType.PrimeTwistedEdwards;
157
return CurveType ==
ECCurve
.ECCurveType.Characteristic2;
173
return CurveType ==
ECCurve
.ECCurveType.Named;
System\Security\Cryptography\ECCurve.NamedCurves.cs (34)
19
public static
ECCurve
brainpoolP160r1
23
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP160r1));
27
public static
ECCurve
brainpoolP160t1
31
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP160t1));
35
public static
ECCurve
brainpoolP192r1
39
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP192r1));
43
public static
ECCurve
brainpoolP192t1
47
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP192t1));
51
public static
ECCurve
brainpoolP224r1
55
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP224r1));
59
public static
ECCurve
brainpoolP224t1
63
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP224t1));
67
public static
ECCurve
brainpoolP256r1
71
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP256r1));
75
public static
ECCurve
brainpoolP256t1
79
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP256t1));
83
public static
ECCurve
brainpoolP320r1
87
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP320r1));
91
public static
ECCurve
brainpoolP320t1
95
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP320t1));
99
public static
ECCurve
brainpoolP384r1
103
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP384r1));
107
public static
ECCurve
brainpoolP384t1
111
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP384t1));
115
public static
ECCurve
brainpoolP512r1
119
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP512r1));
123
public static
ECCurve
brainpoolP512t1
127
return
ECCurve
.CreateFromFriendlyName(nameof(brainpoolP512t1));
131
public static
ECCurve
nistP256
136
return
ECCurve
.CreateFromValueAndName(ECDSA_P256_OID_VALUE, nameof(nistP256));
140
public static
ECCurve
nistP384
145
return
ECCurve
.CreateFromValueAndName(ECDSA_P384_OID_VALUE, nameof(nistP384));
149
public static
ECCurve
nistP521
154
return
ECCurve
.CreateFromValueAndName(ECDSA_P521_OID_VALUE, nameof(nistP521));
System\Security\Cryptography\ECDiffieHellman.Create.OpenSsl.cs (1)
13
public static partial ECDiffieHellman Create(
ECCurve
curve)
System\Security\Cryptography\ECDiffieHellman.cs (1)
29
public static partial ECDiffieHellman Create(
ECCurve
curve);
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (1)
63
public override void GenerateKey(
ECCurve
curve) => _wrapped.GenerateKey(curve);
System\Security\Cryptography\ECDsa.Create.OpenSsl.cs (2)
20
/// The <see cref="
ECCurve
"/> representing the elliptic curve.
22
public static partial ECDsa Create(
ECCurve
curve)
System\Security\Cryptography\ECDsa.cs (1)
27
public static partial ECDsa Create(
ECCurve
curve);
System\Security\Cryptography\ECDsaWrapper.cs (1)
129
public override void GenerateKey(
ECCurve
curve) => _wrapped.GenerateKey(curve);
System\Security\Cryptography\ECParameters.cs (1)
24
public
ECCurve
Curve;
System\Security\Cryptography\Helpers.cs (2)
211
ECCurve
aCurve = aParameters.Curve;
212
ECCurve
bCurve = bParameters.Curve;
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Algorithms.cs (1)
21
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECCurve
))]
System.Security.Cryptography.Pkcs (3)
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (3)
15
internal static Oid secp256r1Oid => field ??= new Oid(secp256r1, nameof(
ECCurve
.NamedCurves.nistP256));
16
internal static Oid secp384r1Oid => field ??= new Oid(secp384r1, nameof(
ECCurve
.NamedCurves.nistP384));
17
internal static Oid secp521r1Oid => field ??= new Oid(secp521r1, nameof(
ECCurve
.NamedCurves.nistP521));
WebTransportInteractiveSampleApp (1)
Program.cs (1)
182
using var ec = ECDsa.Create(
ECCurve
.NamedCurves.nistP256);
WebTransportSampleApp (1)
Program.cs (1)
68
using var ec = ECDsa.Create(
ECCurve
.NamedCurves.nistP256);