2 instantiations of ECCurve
System.Security.Cryptography (2)
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
402
curve = new
ECCurve
410
curve = new
ECCurve
117 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,
netstandard (1)
netstandard.cs (1)
1871
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECCurve
))]
System.Core (1)
System.Core.cs (1)
218
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
ECCurve
))]
System.Security.Cryptography (107)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (7)
736
internal
ECCurve
Curve { get; }
751
ECCurve
curve,
777
ECCurve
.NamedCurves.nistP256,
789
ECCurve
.NamedCurves.nistP384,
801
ECCurve
.NamedCurves.nistP521,
813
ECCurve
.NamedCurves.brainpoolP256r1,
825
ECCurve
.NamedCurves.brainpoolP384r1,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (13)
39
ECCurve
curve = parameters.Curve;
194
ECCurve
primeCurve = default;
230
internal static unsafe byte[] GetPrimeCurveParameterBlob(ref
ECCurve
curve)
400
private static Interop.BCrypt.ECC_CURVE_TYPE_ENUM ConvertToCurveTypeEnum(
ECCurve
.ECCurveType value)
403
Debug.Assert(value ==
ECCurve
.ECCurveType.Characteristic2 ||
404
value ==
ECCurve
.ECCurveType.PrimeShortWeierstrass ||
405
value ==
ECCurve
.ECCurveType.PrimeTwistedEdwards);
412
private static
ECCurve
.ECCurveType ConvertToCurveTypeEnum(Interop.BCrypt.ECC_CURVE_TYPE_ENUM value)
415
ECCurve
.ECCurveType curveType = (
ECCurve
.ECCurveType)value;
416
Debug.Assert(curveType ==
ECCurve
.ECCurveType.Characteristic2 ||
417
curveType ==
ECCurve
.ECCurveType.PrimeShortWeierstrass ||
418
curveType ==
ECCurve
.ECCurveType.PrimeTwistedEdwards);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.cs (1)
21
public ECDiffieHellmanCng(
ECCurve
curve)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (1)
15
ECCurve
curve = parameters.Curve;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.cs (2)
13
/// <param name="curve">The <see cref="
ECCurve
"/> representing the curve.</param>
17
public ECDsaCng(
ECCurve
curve)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (1)
31
ECCurve
curve = parameters.Curve;
src\runtime\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\CngAlgorithmCore.cs (2)
79
public CngKey GetOrGenerateKey(
ECCurve
? curve)
102
ECCurve
eccurve = curve.Value;
System\Security\Cryptography\CngKey.EC.cs (1)
70
internal static CngProperty GetPropertyFromNamedCurve(
ECCurve
curve)
System\Security\Cryptography\CngKey.StandardProperties.cs (3)
244
case nameof(
ECCurve
.NamedCurves.nistP256): return 256;
245
case nameof(
ECCurve
.NamedCurves.nistP384): return 384;
246
case nameof(
ECCurve
.NamedCurves.nistP521): return 521;
System\Security\Cryptography\ECAlgorithm.cs (1)
78
public virtual void GenerateKey(
ECCurve
curve)
System\Security\Cryptography\EccKeyFormatHelper.cs (8)
244
private static
ECCurve
GetCurve(in ValueECDomainParameters domainParameters)
263
return
ECCurve
.CreateFromOid(curveOid);
266
private static
ECCurve
GetSpecifiedECCurve(in ValueSpecifiedECDomain specifiedParameters)
278
private static
ECCurve
GetSpecifiedECCurveCore(in ValueSpecifiedECDomain specifiedParameters)
398
ECCurve
curve;
404
CurveType =
ECCurve
.ECCurveType.PrimeShortWeierstrass,
412
CurveType =
ECCurve
.ECCurveType.Characteristic2,
718
private static void WriteCurve(in
ECCurve
curve, AsnWriter writer)
System\Security\Cryptography\ECCng.ImportExport.cs (1)
132
ecparams.Curve =
ECCurve
.CreateFromOid(new Oid(oidValue, curveName));
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.Cng.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\ECDiffieHellmanCng.Key.cs (1)
51
public override void GenerateKey(
ECCurve
curve)
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (1)
150
ecparams.Curve =
ECCurve
.CreateFromFriendlyName(curveName);
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (1)
63
public override void GenerateKey(
ECCurve
curve) => _wrapped.GenerateKey(curve);
System\Security\Cryptography\ECDsa.Create.Windows.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\ECDsaCng.Key.cs (1)
40
public override void GenerateKey(
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\OpenSsl.NotSupported.cs (2)
104
public ECDiffieHellmanOpenSsl(
ECCurve
curve)
161
public ECDsaOpenSsl(
ECCurve
curve)
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
116
ecparams.Curve =
ECCurve
.CreateFromFriendlyName(curveName);
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\runtime\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));