19 references to AlgorithmGroup
System.Core (19)
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 (6)
53Contract.Ensures(m_key != null && IsEccAlgorithmGroup(m_key.AlgorithmGroup)); 58if (!IsEccAlgorithmGroup(key.AlgorithmGroup)) { 125Contract.Ensures(IsEccAlgorithmGroup(Contract.Result<CngKey>().AlgorithmGroup)); 126Contract.Ensures(m_key != null && IsEccAlgorithmGroup(m_key.AlgorithmGroup)); 169Contract.Ensures(m_key != null && IsEccAlgorithmGroup(m_key.AlgorithmGroup)); 171if (!IsEccAlgorithmGroup(value.AlgorithmGroup)) {
System\Security\Cryptography\RsaCng.cs (3)
44/// <see cref="CngKey.AlgorithmGroup" /> must be Rsa. 59if (key.AlgorithmGroup != CngAlgorithmGroup.Rsa) 112if (value.AlgorithmGroup != CngAlgorithmGroup.Rsa)