6 instantiations of CngAlgorithmGroup
System.Core (6)
System\Security\Cryptography\CngAlgorithmGroup.cs (5)
104s_dh = new CngAlgorithmGroup("DH"); // NCRYPT_DH_ALGORITHM_GROUP 116s_dsa = new CngAlgorithmGroup("DSA"); // NCRYPT_DSA_ALGORITHM_GROUP 129s_ecdh = new CngAlgorithmGroup("ECDH"); // NCRYPT_ECDH_ALGORITHM_GROUP 142s_ecdsa = new CngAlgorithmGroup("ECDSA"); // NCRYPT_ECDSA_ALGORITHM_GROUP 154s_rsa = new CngAlgorithmGroup("RSA"); // NCRYPT_RSA_ALGORITHM_GROUP
System\Security\Cryptography\CngKey.cs (1)
68return new CngAlgorithmGroup(group);
38 references to CngAlgorithmGroup
System.Core (38)
System\Security\Cryptography\CngAlgorithmGroup.cs (22)
20public sealed class CngAlgorithmGroup : IEquatable<CngAlgorithmGroup> { 21private static volatile CngAlgorithmGroup s_dh; 22private static volatile CngAlgorithmGroup s_dsa; 23private static volatile CngAlgorithmGroup s_ecdh; 24private static volatile CngAlgorithmGroup s_ecdsa; 25private static volatile CngAlgorithmGroup s_rsa; 53public static bool operator ==(CngAlgorithmGroup left, CngAlgorithmGroup right) { 63public static bool operator !=(CngAlgorithmGroup left, CngAlgorithmGroup right) { 74return Equals(obj as CngAlgorithmGroup); 77public bool Equals(CngAlgorithmGroup other) { 99public static CngAlgorithmGroup DiffieHellman { 101Contract.Ensures(Contract.Result<CngAlgorithmGroup>() != null); 111public static CngAlgorithmGroup Dsa { 113Contract.Ensures(Contract.Result<CngAlgorithmGroup>() != null); 123public static CngAlgorithmGroup ECDiffieHellman { 126Contract.Ensures(Contract.Result<CngAlgorithmGroup>() != null); 136public static CngAlgorithmGroup ECDsa { 139Contract.Ensures(Contract.Result<CngAlgorithmGroup>() != null); 149public static CngAlgorithmGroup Rsa { 151Contract.Ensures(Contract.Result<CngAlgorithmGroup>() != null);
System\Security\Cryptography\CngKey.cs (1)
55public CngAlgorithmGroup AlgorithmGroup {
System\Security\Cryptography\ECDiffieHellmanCng.cs (8)
71Contract.Ensures(m_key != null && m_key.AlgorithmGroup == CngAlgorithmGroup.ECDiffieHellman); 76if (key.AlgorithmGroup != CngAlgorithmGroup.ECDiffieHellman) { 212Contract.Ensures(Contract.Result<CngKey>().AlgorithmGroup == CngAlgorithmGroup.ECDiffieHellman); 213Contract.Ensures(m_key != null && m_key.AlgorithmGroup == CngAlgorithmGroup.ECDiffieHellman); 256Contract.Ensures(m_key != null && m_key.AlgorithmGroup == CngAlgorithmGroup.ECDiffieHellman); 258if (value.AlgorithmGroup != CngAlgorithmGroup.ECDiffieHellman) { 345if (otherPartyPublicKey.AlgorithmGroup != CngAlgorithmGroup.ECDiffieHellman) { 517if (otherPartyPublicKey.AlgorithmGroup != CngAlgorithmGroup.ECDiffieHellman) {
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (2)
70if (imported.AlgorithmGroup != CngAlgorithmGroup.ECDiffieHellman) { 79Contract.Requires(key != null && key.AlgorithmGroup == CngAlgorithmGroup.ECDiffieHellman);
System\Security\Cryptography\ECDsaCng.cs (3)
470private static bool IsEccAlgorithmGroup(CngAlgorithmGroup algorithmGroup) 477return algorithmGroup == CngAlgorithmGroup.ECDsa || algorithmGroup == CngAlgorithmGroup.ECDiffieHellman;
System\Security\Cryptography\RsaCng.cs (2)
59if (key.AlgorithmGroup != CngAlgorithmGroup.Rsa) 112if (value.AlgorithmGroup != CngAlgorithmGroup.Rsa)