CompositeMLDsa Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a Composite ML-DSA key.
public ref class CompositeMLDsa abstract : IDisposable
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public abstract class CompositeMLDsa : IDisposable
public abstract class CompositeMLDsa : IDisposable
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type CompositeMLDsa = class
interface IDisposable
type CompositeMLDsa = class
interface IDisposable
Public MustInherit Class CompositeMLDsa
Implements IDisposable
- Inheritance
-
CompositeMLDsa
- Derived
- Attributes
- Implements
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
| CompositeMLDsa(CompositeMLDsaAlgorithm) |
Initializes a new instance of the CompositeMLDsa class. |
Properties
| Algorithm |
Gets the specific Composite ML-DSA algorithm for this key. |
| IsSupported |
Gets a value indicating whether the current platform supports Composite ML-DSA. |
Methods
| Dispose() |
Releases all resources used by the CompositeMLDsa class. |
| Dispose(Boolean) |
Called by the Dispose() method to release the managed and unmanaged resources used by the current instance of the CompositeMLDsa class. |
| 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. |
| ExportCompositeMLDsaPrivateKey(Span<Byte>) |
Exports the private-key portion of the current key into the provided buffer. |
| ExportCompositeMLDsaPrivateKeyCore(Span<Byte>) |
When overridden in a derived class, exports the private key portion of the current key. |
| ExportCompositeMLDsaPublicKey() |
Exports the public-key portion of the current key. |
| ExportCompositeMLDsaPublicKey(Span<Byte>) |
Exports the public-key portion of the current key into the provided buffer. |
| ExportCompositeMLDsaPublicKeyCore(Span<Byte>) |
When overridden in a derived class, exports the public key portion of the current key. |
| ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters) |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password. |
| ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters) |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password. |
| ExportEncryptedPkcs8PrivateKey(String, PbeParameters) |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password. |
| 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. |
| 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. |
| 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. |
| ExportPkcs8PrivateKey() |
Exports the current key in the PKCS#8 PrivateKeyInfo format. |
| ExportPkcs8PrivateKeyPem() |
Exports the current key in a PEM-encoded representation of the PKCS#8 PrivateKeyInfo format. |
| ExportSubjectPublicKeyInfo() |
Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format. |
| ExportSubjectPublicKeyInfoPem() |
Exports the public-key portion of the current key in a PEM-encoded representation of the X.509 SubjectPublicKeyInfo format. |
| GenerateKey(CompositeMLDsaAlgorithm) |
Generates a new Composite ML-DSA key. |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, Byte[]) |
Imports a Composite ML-DSA private key. |
| ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, ReadOnlySpan<Byte>) |
Imports a Composite ML-DSA private key. |
| ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm, Byte[]) |
Imports a Composite ML-DSA public key. |
| ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm, ReadOnlySpan<Byte>) |
Imports a Composite ML-DSA public key. |
| ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Imports a Composite ML-DSA private key from a PKCS#8 EncryptedPrivateKeyInfo structure. |
| ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) |
Imports a Composite ML-DSA private key from a PKCS#8 EncryptedPrivateKeyInfo structure. |
| ImportEncryptedPkcs8PrivateKey(String, Byte[]) |
Imports a Composite ML-DSA private key from a PKCS#8 EncryptedPrivateKeyInfo structure. |
| ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) |
Imports a Composite ML-DSA key from an encrypted RFC 7468 PEM-encoded string. |
| ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Char>) |
Imports a Composite ML-DSA key from an encrypted RFC 7468 PEM-encoded string. |
| ImportFromEncryptedPem(String, Byte[]) |
Imports a Composite ML-DSA key from an encrypted RFC 7468 PEM-encoded string. |
| ImportFromEncryptedPem(String, String) |
Imports a Composite ML-DSA key from an encrypted RFC 7468 PEM-encoded string. |
| ImportFromPem(ReadOnlySpan<Char>) |
Imports a Composite ML-DSA key from an RFC 7468 PEM-encoded string. |
| ImportFromPem(String) |
Imports a Composite ML-DSA key from an RFC 7468 PEM-encoded string. |
| ImportPkcs8PrivateKey(Byte[]) |
Imports a Composite ML-DSA private key from a PKCS#8 PrivateKeyInfo structure. |
| ImportPkcs8PrivateKey(ReadOnlySpan<Byte>) |
Imports a Composite ML-DSA private key from a PKCS#8 PrivateKeyInfo structure. |
| ImportSubjectPublicKeyInfo(Byte[]) |
Imports a Composite ML-DSA public key from an X.509 SubjectPublicKeyInfo structure. |
| ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>) |
Imports a Composite ML-DSA public key from an X.509 SubjectPublicKeyInfo structure. |
| IsAlgorithmSupported(CompositeMLDsaAlgorithm) |
Determines whether the specified algorithm is supported by the current platform. |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| SignData(Byte[], Byte[]) |
Signs the specified data. |
| SignData(ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>) |
Signs the specified data, writing the signature into the provided buffer. |
| 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. |
| 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. |
| TryExportCompositeMLDsaPublicKey(Span<Byte>, Int32) |
Attempts to export public key portion of the current key into the provided buffer. |
| 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. |
| 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. |
| 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. |
| TryExportPkcs8PrivateKey(Span<Byte>, Int32) |
Attempts to export the current key in the PKCS#8 PrivateKeyInfo format into the provided buffer. |
| 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. |
| 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. |
| VerifyData(Byte[], Byte[], Byte[]) |
Verifies that the specified signature is valid for this key and the provided data. |
| VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Verifies that the specified signature is valid for this key and the provided data. |
| VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
When overridden in a derived class, verifies the signature of the specified data and context. |