<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0-preview.4.20251.6" />

System.Security.Cryptography.CngAlgorithm

public sealed class CngAlgorithm : IEquatable<CngAlgorithm>
Encapsulates the name of an encryption algorithm.
public static CngAlgorithm ECDiffieHellman { get; }

Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm whose curve is described via a key property.

public static CngAlgorithm ECDiffieHellmanP256 { get; }

Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-256 curve.

public static CngAlgorithm ECDiffieHellmanP384 { get; }

Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-384 curve.

public static CngAlgorithm ECDiffieHellmanP521 { get; }

Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-521 curve.

public static CngAlgorithm ECDsa { get; }

Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) whose curve is described via a key property.

public static CngAlgorithm ECDsaP256 { get; }

Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-256 curve.

public static CngAlgorithm ECDsaP384 { get; }

Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-384 curve.

public static CngAlgorithm ECDsaP521 { get; }

Gets a new CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-521 curve.

public static CngAlgorithm MD5 { get; }

Gets a new CngAlgorithm object that specifies the Message Digest 5 (MD5) hash algorithm.

public static CngAlgorithm Rsa { get; }

Gets a new CngAlgorithm object that specifies the RSA hash algorithm.

public static CngAlgorithm Sha1 { get; }

Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 1 (SHA-1) algorithm.

public static CngAlgorithm Sha256 { get; }

Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 256 (SHA-256) algorithm.

public static CngAlgorithm Sha384 { get; }

Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 384 (SHA-384) algorithm.

public static CngAlgorithm Sha512 { get; }

Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 512 (SHA-512) algorithm.

public string Algorithm { get; }

Gets the algorithm name that the current CngAlgorithm object specifies.

public CngAlgorithm(string algorithm)

Initializes a new instance of the CngAlgorithm class.

public static bool op_Equality(CngAlgorithm left, CngAlgorithm right)

Determines whether two CngAlgorithm objects specify the same algorithm name.

public static bool op_Inequality(CngAlgorithm left, CngAlgorithm right)

Determines whether two CngAlgorithm objects do not specify the same algorithm.

public bool Equals(CngAlgorithm other)

Compares the specified CngAlgorithm object to the current CngAlgorithm object.