16 instantiations of CngAlgorithm
System.Security.Cryptography (16)
System\Security\Cryptography\CngAlgorithm.cs (16)
92
return s_rsa ??= new
CngAlgorithm
("RSA"); // BCRYPT_RSA_ALGORITHM
100
return s_ecdh ??= new
CngAlgorithm
("ECDH"); // BCRYPT_ECDH_ALGORITHM
108
return s_ecdhp256 ??= new
CngAlgorithm
("ECDH_P256"); // BCRYPT_ECDH_P256_ALGORITHM
116
return s_ecdhp384 ??= new
CngAlgorithm
("ECDH_P384"); // BCRYPT_ECDH_P384_ALGORITHM
124
return s_ecdhp521 ??= new
CngAlgorithm
("ECDH_P521"); // BCRYPT_ECDH_P521_ALGORITHM
132
return s_ecdsa ??= new
CngAlgorithm
("ECDSA"); // BCRYPT_ECDSA_ALGORITHM
140
return s_ecdsap256 ??= new
CngAlgorithm
("ECDSA_P256"); // BCRYPT_ECDSA_P256_ALGORITHM
148
return s_ecdsap384 ??= new
CngAlgorithm
("ECDSA_P384"); // BCRYPT_ECDSA_P384_ALGORITHM
156
return s_ecdsap521 ??= new
CngAlgorithm
("ECDSA_P521"); // BCRYPT_ECDSA_P521_ALGORITHM
164
return s_md5 ??= new
CngAlgorithm
("MD5"); // BCRYPT_MD5_ALGORITHM
172
return s_sha1 ??= new
CngAlgorithm
("SHA1"); // BCRYPT_SHA1_ALGORITHM
180
return s_sha256 ??= new
CngAlgorithm
("SHA256"); // BCRYPT_SHA256_ALGORITHM
188
return s_sha384 ??= new
CngAlgorithm
("SHA384"); // BCRYPT_SHA384_ALGORITHM
196
return s_sha512 ??= new
CngAlgorithm
("SHA512"); // BCRYPT_SHA512_ALGORITHM
209
public static CngAlgorithm MLDsa => field ??= new
CngAlgorithm
("ML-DSA"); // BCRYPT_MLDSA_ALGORITHM
220
public static CngAlgorithm MLKem => field ??= new
CngAlgorithm
("ML-KEM"); // BCRYPT_MLKEM_ALGORITHM
49 references to CngAlgorithm
System.Core (1)
System.Core.cs (1)
200
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
CngAlgorithm
))]
System.Security.Cryptography (47)
System\Security\Cryptography\Cng.NotSupported.cs (6)
110
public
CngAlgorithm
Algorithm => null!;
132
public static CngKey Create(
CngAlgorithm
algorithm)
138
public static CngKey Create(
CngAlgorithm
algorithm, string? keyName)
144
public static CngKey Create(
CngAlgorithm
algorithm, string? keyName, CngKeyCreationParameters? creationParameters)
255
public
CngAlgorithm
HashAlgorithm { get => null!; set { } }
324
public
CngAlgorithm
HashAlgorithm { get => null!; set { } }
System\Security\Cryptography\CngAlgorithm.cs (41)
16
public sealed class CngAlgorithm : IEquatable<
CngAlgorithm
>
35
public static bool operator ==(
CngAlgorithm
? left,
CngAlgorithm
? right)
45
public static bool operator !=(
CngAlgorithm
? left,
CngAlgorithm
? right)
59
return Equals(obj as
CngAlgorithm
);
62
public bool Equals([NotNullWhen(true)]
CngAlgorithm
? other)
88
public static
CngAlgorithm
Rsa
96
public static
CngAlgorithm
ECDiffieHellman
104
public static
CngAlgorithm
ECDiffieHellmanP256
112
public static
CngAlgorithm
ECDiffieHellmanP384
120
public static
CngAlgorithm
ECDiffieHellmanP521
128
public static
CngAlgorithm
ECDsa
136
public static
CngAlgorithm
ECDsaP256
144
public static
CngAlgorithm
ECDsaP384
152
public static
CngAlgorithm
ECDsaP521
160
public static
CngAlgorithm
MD5
168
public static
CngAlgorithm
Sha1
176
public static
CngAlgorithm
Sha256
184
public static
CngAlgorithm
Sha384
192
public static
CngAlgorithm
Sha512
201
/// Gets a new <see cref="
CngAlgorithm
"/> object that specifies the Module-Lattice-Based Digital Signature
205
/// A new <see cref="
CngAlgorithm
"/> object that specifies the Module-Lattice-Based Digital Signature
209
public static
CngAlgorithm
MLDsa => field ??= new CngAlgorithm("ML-DSA"); // BCRYPT_MLDSA_ALGORITHM
212
/// Gets a new <see cref="
CngAlgorithm
"/> object that specifies the Module-Lattice-Based Key-Encapsulation
216
/// A new <see cref="
CngAlgorithm
"/> object that specifies the Module-Lattice-Based Key-Encapsulation
220
public static
CngAlgorithm
MLKem => field ??= new CngAlgorithm("ML-KEM"); // BCRYPT_MLKEM_ALGORITHM
222
private static
CngAlgorithm
? s_ecdh;
223
private static
CngAlgorithm
? s_ecdhp256;
224
private static
CngAlgorithm
? s_ecdhp384;
225
private static
CngAlgorithm
? s_ecdhp521;
226
private static
CngAlgorithm
? s_ecdsa;
227
private static
CngAlgorithm
? s_ecdsap256;
228
private static
CngAlgorithm
? s_ecdsap384;
229
private static
CngAlgorithm
? s_ecdsap521;
230
private static
CngAlgorithm
? s_md5;
231
private static
CngAlgorithm
? s_sha1;
232
private static
CngAlgorithm
? s_sha256;
233
private static
CngAlgorithm
? s_sha384;
234
private static
CngAlgorithm
? s_sha512;
235
private static
CngAlgorithm
? s_rsa;
System.Security.Cryptography.Cng (1)
System.Security.Cryptography.Cng.cs (1)
9
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
CngAlgorithm
))]