SlhDsa.ExportSlhDsaPrivateKey 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
| ExportSlhDsaPrivateKey() | Exports the current key in the FIPS 205 private key format. | 
| ExportSlhDsaPrivateKey(Span<Byte>) | Exports the current key in the FIPS 205 private key format. | 
ExportSlhDsaPrivateKey()
- Source:
- SlhDsa.cs
Exports the current key in the FIPS 205 private key format.
public:
 cli::array <System::Byte> ^ ExportSlhDsaPrivateKey();public byte[] ExportSlhDsaPrivateKey();member this.ExportSlhDsaPrivateKey : unit -> byte[]Public Function ExportSlhDsaPrivateKey () As Byte()Returns
The FIPS 205 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
ExportSlhDsaPrivateKey(Span<Byte>)
- Source:
- SlhDsa.cs
Exports the current key in the FIPS 205 private key format.
public:
 void ExportSlhDsaPrivateKey(Span<System::Byte> destination);public void ExportSlhDsaPrivateKey(Span<byte> destination);member this.ExportSlhDsaPrivateKey : Span<byte> -> unitPublic Sub ExportSlhDsaPrivateKey (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.
The current instance cannot export a private key.
-or-
An error occurred while exporting the key.
The object has already been disposed.