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