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