Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​CngAlgorithm
Assembly: System.Security.Cryptography
Inheritance: object → CngAlgorithm
Implemented Interfaces
Encapsulates the name of an encryption algorithm.
Properties
public
string
Algorithm
Gets the algorithm name that the current <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object specifies.
public static
CngAlgorithm
ECDiffieHellman
Gets a <see cref="T:System.Security.Cryptography.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
Gets a <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-256 curve.
public static
CngAlgorithm
ECDiffieHellmanP384
Gets a <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-384 curve.
public static
CngAlgorithm
ECDiffieHellmanP521
Gets a <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-521 curve.
public static
CngAlgorithm
ECDsa
Gets a <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) whose curve is described via a key property.
public static
CngAlgorithm
ECDsaP256
Gets a <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-256 curve.
public static
CngAlgorithm
ECDsaP384
Gets a <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-384 curve.
public static
CngAlgorithm
ECDsaP521
Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-521 curve.
public static
CngAlgorithm
MD5
Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Message Digest 5 (MD5) hash algorithm.
public static
CngAlgorithm
MLDsa
<para>Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Module-Lattice-Based Digital Signature Algorithm (ML-DSA).</para>
public static
CngAlgorithm
MLKem
<para>Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM).</para>
public static
CngAlgorithm
Rsa
Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the RSA hash algorithm.
public static
CngAlgorithm
Sha1
Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Secure Hash Algorithm 1 (SHA-1) algorithm.
public static
CngAlgorithm
Sha256
Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Secure Hash Algorithm 256 (SHA-256) algorithm.
public static
CngAlgorithm
Sha384
Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Secure Hash Algorithm 384 (SHA-384) algorithm.
public static
CngAlgorithm
Sha512
Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Secure Hash Algorithm 512 (SHA-512) algorithm.
public static
CngAlgorithm
SlhDsa
<para>Gets a new <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object that specifies the Stateless Hash-Based Digital Signature Algorithm (SLH-DSA).</para>
Methods
public
bool
Equals​(object obj)
Compares the specified object to the current <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object.
Returns <see langword="true" /> if the <paramref name="obj" /> parameter is a <see cref="T:System.Security.Cryptography.CngAlgorithm" /> that specifies the same algorithm as the current object; otherwise, <see langword="false" /> .
obj
An object to be compared to the current <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object.
public
bool
Equals​(CngAlgorithm other)
Compares the specified <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object to the current <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object.
Returns <see langword="true" /> if the <paramref name="other" /> parameter specifies the same algorithm as the current object; otherwise, <see langword="false" /> .
other
An object to be compared to the current <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object.
public
int
GetHashCode​()
Generates a hash value for the algorithm name that is embedded in the current <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object.
Returns The hash value of the embedded algorithm name.
public
string
ToString​()
Gets the name of the algorithm that the current <see cref="T:System.Security.Cryptography.CngAlgorithm" /> object specifies.
Returns The embedded algorithm name.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object