Edit

Share via


CompositeMLDsaCng Class

Definition

Provides a Cryptography Next Generation (CNG) implementation of Composite ML-DSA.

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

Remarks

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

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

Constructors

CompositeMLDsaCng(CngKey)

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

Properties

Algorithm

Gets the specific Composite ML-DSA algorithm for this key.

(Inherited from CompositeMLDsa)

Methods

Dispose()

Releases all resources used by the CompositeMLDsa class.

(Inherited from CompositeMLDsa)
Dispose(Boolean)

Called by the Dispose() method to release the managed and unmanaged resources used by the current instance of the CompositeMLDsa class.

(Inherited from CompositeMLDsa)
Equals(Object)

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

(Inherited from Object)
ExportCompositeMLDsaPrivateKey()

Exports the private-key portion of the current key.

(Inherited from CompositeMLDsa)
ExportCompositeMLDsaPrivateKey(Span<Byte>)

Exports the private-key portion of the current key into the provided buffer.

(Inherited from CompositeMLDsa)
ExportCompositeMLDsaPrivateKeyCore(Span<Byte>)

When overridden in a derived class, exports the private key portion of the current key.

(Inherited from CompositeMLDsa)
ExportCompositeMLDsaPublicKey()

Exports the public-key portion of the current key.

(Inherited from CompositeMLDsa)
ExportCompositeMLDsaPublicKey(Span<Byte>)

Exports the public-key portion of the current key into the provided buffer.

(Inherited from CompositeMLDsa)
ExportCompositeMLDsaPublicKeyCore(Span<Byte>)

When overridden in a derived class, exports the public key portion of the current key.

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

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

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

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

(Inherited from CompositeMLDsa)
ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

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

(Inherited from CompositeMLDsa)
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 CompositeMLDsa)
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 CompositeMLDsa)
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 CompositeMLDsa)
ExportPkcs8PrivateKey()

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

(Inherited from CompositeMLDsa)
ExportPkcs8PrivateKeyPem()

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

(Inherited from CompositeMLDsa)
ExportSubjectPublicKeyInfo()

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

(Inherited from CompositeMLDsa)
ExportSubjectPublicKeyInfoPem()

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

(Inherited from CompositeMLDsa)
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 CompositeMLDsa)
SignData(ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

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

(Inherited from CompositeMLDsa)
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 CompositeMLDsa)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryExportCompositeMLDsaPrivateKey(Span<Byte>, Int32)

Attempts to export private key portion of the current key into the provided buffer.

(Inherited from CompositeMLDsa)
TryExportCompositeMLDsaPublicKey(Span<Byte>, Int32)

Attempts to export public key portion of the current key into the provided buffer.

(Inherited from CompositeMLDsa)
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 CompositeMLDsa)
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 CompositeMLDsa)
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 CompositeMLDsa)
TryExportPkcs8PrivateKey(Span<Byte>, Int32)

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

(Inherited from CompositeMLDsa)
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 CompositeMLDsa)
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 CompositeMLDsa)
VerifyData(Byte[], Byte[], Byte[])

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

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

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

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

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

(Inherited from CompositeMLDsa)

Applies to