MLDsa.ExportMLDsaPrivateKey Method
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.
Overloads
| ExportMLDsaPrivateKey() |
Exports the current key in the FIPS 204 private key format. |
| ExportMLDsaPrivateKey(Span<Byte>) |
Exports the current key in the FIPS 204 private key format. |
ExportMLDsaPrivateKey()
- Source:
- MLDsa.cs
Exports the current key in the FIPS 204 private key format.
public:
cli::array <System::Byte> ^ ExportMLDsaPrivateKey();
public byte[] ExportMLDsaPrivateKey();
member this.ExportMLDsaPrivateKey : unit -> byte[]
Public Function ExportMLDsaPrivateKey () As Byte()
Returns
The FIPS 204 private key.
Exceptions
The current instance cannot export a private key.
-or-
An error occurred while exporting the key.
The object has already been disposed.
Applies to
ExportMLDsaPrivateKey(Span<Byte>)
- Source:
- MLDsa.cs
Exports the current key in the FIPS 204 private key format.
public:
void ExportMLDsaPrivateKey(Span<System::Byte> destination);
public void ExportMLDsaPrivateKey(Span<byte> destination);
member this.ExportMLDsaPrivateKey : Span<byte> -> unit
Public Sub ExportMLDsaPrivateKey (destination As Span(Of Byte))
Parameters
The buffer to receive the private key. Its length must be exactly PrivateKeySizeInBytes.
Exceptions
destination is the incorrect length to receive the private key.
An error occurred while exporting the key.