9 instantiations of CngAlgorithmGroup
System.Security.Cryptography (9)
System\Security\Cryptography\CngAlgorithmGroup.cs (8)
93
return s_dh ??= new
CngAlgorithmGroup
("DH"); // NCRYPT_DH_ALGORITHM_GROUP
101
return s_dsa ??= new
CngAlgorithmGroup
("DSA"); // NCRYPT_DSA_ALGORITHM_GROUP
109
return s_ecdh ??= new
CngAlgorithmGroup
("ECDH"); // NCRYPT_ECDH_ALGORITHM_GROUP
117
return s_ecdsa ??= new
CngAlgorithmGroup
("ECDSA"); // NCRYPT_ECDSA_ALGORITHM_GROUP
125
return s_rsa ??= new
CngAlgorithmGroup
("RSA"); // NCRYPT_RSA_ALGORITHM_GROUP
137
field ??= new
CngAlgorithmGroup
("MLDSA"); // NCRYPT_MLDSA_ALGORITHM_GROUP
147
field ??= new
CngAlgorithmGroup
("MLKEM"); // NCRYPT_MLKEM_ALGORITHM_GROUP
158
field ??= new
CngAlgorithmGroup
("SLHDSA"); // NCRYPT_SLHDSA_ALGORITHM_GROUP
System\Security\Cryptography\CngKey.StandardProperties.cs (1)
59
_cachedAlgorithmGroup = new
CngAlgorithmGroup
(algorithmGroup);
59 references to CngAlgorithmGroup
System.Core (1)
System.Core.cs (1)
202
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
CngAlgorithmGroup
))]
System.Security.Cryptography (57)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (3)
33
Debug.Assert(key.AlgorithmGroup ==
CngAlgorithmGroup
.MLDsa);
45
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.MLDsa)
63
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.MLDsa)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (3)
25
Debug.Assert(key.AlgorithmGroup ==
CngAlgorithmGroup
.MLKem);
37
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.MLKem)
55
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.MLKem)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (2)
26
private static partial int GuessKeySpec(CngProvider provider, string keyName, bool machineKey,
CngAlgorithmGroup
? algorithmGroup);
66
if (clonedCngKey.AlgorithmGroup !=
CngAlgorithmGroup
.MLDsa)
System\Security\Cryptography\CngAlgorithmGroup.cs (23)
17
public sealed class CngAlgorithmGroup : IEquatable<
CngAlgorithmGroup
>
36
public static bool operator ==(
CngAlgorithmGroup
? left,
CngAlgorithmGroup
? right)
46
public static bool operator !=(
CngAlgorithmGroup
? left,
CngAlgorithmGroup
? right)
60
return Equals(obj as
CngAlgorithmGroup
);
63
public bool Equals([NotNullWhen(true)]
CngAlgorithmGroup
? other)
89
public static
CngAlgorithmGroup
DiffieHellman
97
public static
CngAlgorithmGroup
Dsa
105
public static
CngAlgorithmGroup
ECDiffieHellman
113
public static
CngAlgorithmGroup
ECDsa
121
public static
CngAlgorithmGroup
Rsa
130
/// Gets a <see cref="
CngAlgorithmGroup
" /> object that specifies the Module-Lattice-Based Digital Signature
136
public static
CngAlgorithmGroup
MLDsa =>
140
/// Gets a <see cref="
CngAlgorithmGroup
" /> object that specifies the Module-Lattice-Based Key-Encapsulation
146
public static
CngAlgorithmGroup
MLKem =>
150
/// Gets a <see cref="
CngAlgorithmGroup
" /> object that specifies the Stateless Hash-Based Digital Signature
157
public static
CngAlgorithmGroup
SlhDsa =>
160
private static
CngAlgorithmGroup
? s_dh;
161
private static
CngAlgorithmGroup
? s_dsa;
162
private static
CngAlgorithmGroup
? s_ecdh;
163
private static
CngAlgorithmGroup
? s_ecdsa;
164
private static
CngAlgorithmGroup
? s_rsa;
System\Security\Cryptography\CngKey.StandardProperties.cs (5)
23
private
CngAlgorithmGroup
? _cachedAlgorithmGroup;
49
public
CngAlgorithmGroup
? AlgorithmGroup
232
CngAlgorithmGroup
? algorithmGroup = AlgorithmGroup;
234
if (algorithmGroup ==
CngAlgorithmGroup
.ECDiffieHellman || algorithmGroup ==
CngAlgorithmGroup
.ECDsa)
System\Security\Cryptography\DSACng.cs (2)
28
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.Dsa)
47
Debug.Assert(key.AlgorithmGroup ==
CngAlgorithmGroup
.Dsa);
System\Security\Cryptography\DSACng.Key.cs (1)
32
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.Dsa)
System\Security\Cryptography\ECDiffieHellmanCng.cs (2)
28
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.ECDiffieHellman)
38
Debug.Assert(key.AlgorithmGroup ==
CngAlgorithmGroup
.ECDiffieHellman);
System\Security\Cryptography\ECDiffieHellmanCng.Derive.cs (2)
46
if (otherPartyPublicKey.AlgorithmGroup !=
CngAlgorithmGroup
.ECDiffieHellman)
131
if (otherPartyPublicKey.AlgorithmGroup !=
CngAlgorithmGroup
.ECDiffieHellman)
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (1)
40
if (value.AlgorithmGroup !=
CngAlgorithmGroup
.ECDiffieHellman)
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (1)
74
if (imported.AlgorithmGroup !=
CngAlgorithmGroup
.ECDiffieHellman)
System\Security\Cryptography\ECDsaCng.cs (3)
86
private static bool IsEccAlgorithmGroup(
CngAlgorithmGroup
? algorithmGroup)
93
return algorithmGroup ==
CngAlgorithmGroup
.ECDsa || algorithmGroup ==
CngAlgorithmGroup
.ECDiffieHellman;
System\Security\Cryptography\RSACng.cs (2)
28
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.Rsa)
47
Debug.Assert(key.AlgorithmGroup ==
CngAlgorithmGroup
.Rsa);
System\Security\Cryptography\RSACng.Key.cs (1)
32
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.Rsa)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (1)
25
if (key.AlgorithmGroup !=
CngAlgorithmGroup
.ECDiffieHellman ||
System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (4)
26
CngAlgorithmGroup
? algorithmGroup)
76
CngAlgorithmGroup
? algorithmGroup,
79
if (algorithmGroup ==
CngAlgorithmGroup
.Rsa)
84
if (algorithmGroup ==
CngAlgorithmGroup
.Dsa)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
67
if (cngKey.AlgorithmGroup ==
CngAlgorithmGroup
.ECDiffieHellman)
System.Security.Cryptography.Cng (1)
System.Security.Cryptography.Cng.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
CngAlgorithmGroup
))]