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