2 instantiations of ECCurve
System.Security.Cryptography (2)
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (2)
416
curve = new
ECCurve
424
curve = new
ECCurve
95 references to ECCurve
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 (87)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (7)
42
ECCurve
.ECCurveType curveType,
55
internal static SafeEcKeyHandle EcKeyCreateByExplicitCurve(
ECCurve
curve)
175
out
ECCurve
.ECCurveType curveType,
192
ECCurve
.ECCurveType curveType;
241
if (curveType ==
ECCurve
.ECCurveType.Characteristic2)
267
var
curve = parameters.Curve;
278
if (curveType ==
ECCurve
.ECCurveType.Characteristic2)
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (8)
258
private static
ECCurve
GetCurve(ECDomainParameters domainParameters)
277
return
ECCurve
.CreateFromOid(curveOid);
280
private static
ECCurve
GetSpecifiedECCurve(SpecifiedECDomain specifiedParameters)
292
private static
ECCurve
GetSpecifiedECCurveCore(SpecifiedECDomain specifiedParameters)
412
ECCurve
curve;
418
CurveType =
ECCurve
.ECCurveType.PrimeShortWeierstrass,
426
CurveType =
ECCurve
.ECCurveType.Characteristic2,
739
private static void WriteCurve(in
ECCurve
curve, AsnWriter writer)
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 (1)
87
parameters.Curve =
ECCurve
.CreateFromValue(keyOidValueName);
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (3)
48
internal static Oid secp256r1Oid => s_secp256R1Oid ??= new Oid(secp256r1, nameof(
ECCurve
.NamedCurves.nistP256));
49
internal static Oid secp384r1Oid => s_secp384R1Oid ??= new Oid(secp384r1, nameof(
ECCurve
.NamedCurves.nistP384));
50
internal static Oid secp521r1Oid => s_secp521R1Oid ??= new Oid(secp521r1, nameof(
ECCurve
.NamedCurves.nistP521));
System\Security\Cryptography\Cng.NotSupported.cs (2)
244
public ECDiffieHellmanCng(
ECCurve
curve)
313
public ECDsaCng(
ECCurve
curve)
System\Security\Cryptography\ECAlgorithm.cs (1)
78
public virtual void GenerateKey(
ECCurve
curve)
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)
204
ECCurve
aCurve = aParameters.Curve;
205
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)
48
internal static Oid secp256r1Oid => s_secp256R1Oid ??= new Oid(secp256r1, nameof(
ECCurve
.NamedCurves.nistP256));
49
internal static Oid secp384r1Oid => s_secp384R1Oid ??= new Oid(secp384r1, nameof(
ECCurve
.NamedCurves.nistP384));
50
internal static Oid secp521r1Oid => s_secp521R1Oid ??= 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);