Edit

Share via


SlhDsaCng Class

Definition

Provides a Cryptography Next Generation (CNG) implementation of the Stateless Hash-Based Digital Signature Algorithm (SLH-DSA).

public ref class SlhDsaCng sealed : System::Security::Cryptography::SlhDsa
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class SlhDsaCng : System.Security.Cryptography.SlhDsa
public sealed class SlhDsaCng : System.Security.Cryptography.SlhDsa
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SlhDsaCng = class
    inherit SlhDsa
type SlhDsaCng = class
    inherit SlhDsa
Public NotInheritable Class SlhDsaCng
Inherits SlhDsa
Inheritance
SlhDsaCng
Attributes

Remarks

This algorithm is specified by FIPS-205.

Developers are encouraged to program against the SlhDsa base class, rather than any specific derived class.

The derived classes are intended for interop with the underlying system cryptographic libraries.

Constructors

SlhDsaCng(CngKey)

Initializes a new instance of the SlhDsaCng class by using the specified CngKey.

Properties

Algorithm

Gets the specific SLH-DSA algorithm for this key.

(Inherited from SlhDsa)

Methods

Dispose()

Releases all resources used by the SlhDsa class.

(Inherited from SlhDsa)
Dispose(Boolean)

Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the SlhDsa class.

(Inherited from SlhDsa)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password.

(Inherited from SlhDsa)
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password.

(Inherited from SlhDsa)
ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password.

(Inherited from SlhDsa)
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)

Exports the current key in a PEM-encoded representation of the PKCS#8 EncryptedPrivateKeyInfo representation of this key, using a byte-based password.

(Inherited from SlhDsa)
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)

Exports the current key in a PEM-encoded representation of the PKCS#8 EncryptedPrivateKeyInfo representation of this key, using a char-based password.

(Inherited from SlhDsa)
ExportEncryptedPkcs8PrivateKeyPem(String, PbeParameters)

Exports the current key in a PEM-encoded representation of the PKCS#8 EncryptedPrivateKeyInfo representation of this key, using a char-based password.

(Inherited from SlhDsa)
ExportPkcs8PrivateKey()

Exports the current key in the PKCS#8 PrivateKeyInfo format.

(Inherited from SlhDsa)
ExportPkcs8PrivateKeyPem()

Exports the current key in a PEM-encoded representation of the PKCS#8 PrivateKeyInfo format.

(Inherited from SlhDsa)
ExportSlhDsaPrivateKey()

Exports the current key in the FIPS 205 private key format.

(Inherited from SlhDsa)
ExportSlhDsaPrivateKey(Span<Byte>)

Exports the current key in the FIPS 205 private key format.

(Inherited from SlhDsa)
ExportSlhDsaPrivateKeyCore(Span<Byte>)

When overridden in a derived class, exports the FIPS 205 private key to the specified buffer.

(Inherited from SlhDsa)
ExportSlhDsaPublicKey()

Exports the public-key portion of the current key in the FIPS 205 public key format.

(Inherited from SlhDsa)
ExportSlhDsaPublicKey(Span<Byte>)

Exports the public-key portion of the current key in the FIPS 205 public key format.

(Inherited from SlhDsa)
ExportSlhDsaPublicKeyCore(Span<Byte>)

When overridden in a derived class, exports the FIPS 205 public key to the specified buffer.

(Inherited from SlhDsa)
ExportSubjectPublicKeyInfo()

Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format.

(Inherited from SlhDsa)
ExportSubjectPublicKeyInfoPem()

Exports the public-key portion of the current key in a PEM-encoded representation of the X.509 SubjectPublicKeyInfo format.

(Inherited from SlhDsa)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetKey()

Gets a new CngKey representing the key used by the current instance.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SignData(Byte[], Byte[])

Signs the specified data.

(Inherited from SlhDsa)
SignData(ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

Signs the specified data, writing the signature into the provided buffer.

(Inherited from SlhDsa)
SignDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)

When overridden in a derived class, computes the signature of the specified data and context, writing it into the provided buffer.

(Inherited from SlhDsa)
SignPreHash(Byte[], String, Byte[])

Signs the specified hash using the FIPS 205 pre-hash signing algorithm.

(Inherited from SlhDsa)
SignPreHash(ReadOnlySpan<Byte>, Span<Byte>, String, ReadOnlySpan<Byte>)

Signs the specified hash using the FIPS 205 pre-hash signing algorithm, writing the signature into the provided buffer.

(Inherited from SlhDsa)
SignPreHashCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, Span<Byte>)

When overridden in a derived class, computes the pre-hash signature of the specified hash and context, writing it into the provided buffer.

(Inherited from SlhDsa)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a byte-based password.

(Inherited from SlhDsa)
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password.

(Inherited from SlhDsa)
TryExportEncryptedPkcs8PrivateKey(String, PbeParameters, Span<Byte>, Int32)

Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password.

(Inherited from SlhDsa)
TryExportPkcs8PrivateKey(Span<Byte>, Int32)

Attempts to export the current key in the PKCS#8 PrivateKeyInfo format into the provided buffer.

(Inherited from SlhDsa)
TryExportPkcs8PrivateKeyCore(Span<Byte>, Int32)

When overridden in a derived class, attempts to export the current key in the PKCS#8 PrivateKeyInfo format into the provided buffer.

(Inherited from SlhDsa)
TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)

Attempts to export the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format into the provided buffer.

(Inherited from SlhDsa)
VerifyData(Byte[], Byte[], Byte[])

Verifies that the specified signature is valid for this key and the provided data.

(Inherited from SlhDsa)
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Verifies that the specified signature is valid for this key and the provided data.

(Inherited from SlhDsa)
VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

When overridden in a derived class, verifies the signature of the specified data and context.

(Inherited from SlhDsa)
VerifyPreHash(Byte[], Byte[], String, Byte[])

Verifies that the specified FIPS 205 pre-hash signature is valid for this key and the provided hash.

(Inherited from SlhDsa)
VerifyPreHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, ReadOnlySpan<Byte>)

Verifies that the specified FIPS 205 pre-hash signature is valid for this key and the provided hash.

(Inherited from SlhDsa)
VerifyPreHashCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, ReadOnlySpan<Byte>)

When overridden in a derived class, verifies the pre-hash signature of the specified hash and context.

(Inherited from SlhDsa)

Applies to