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