語言

MLDsa.ExportMLDsaPrivateKey 方法

定義

匯出目前的金鑰,採用 FIPS 204 私鑰格式。

多載

名稱 Description
ExportMLDsaPrivateKey()

匯出目前的金鑰,採用 FIPS 204 私鑰格式。

ExportMLDsaPrivateKey(Span<Byte>)

匯出目前的金鑰,採用 FIPS 204 私鑰格式。

ExportMLDsaPrivateKey()

來源:
MLDsa.cs
來源:
MLDsa.cs
來源:
MLDsa.cs

匯出目前的金鑰,採用 FIPS 204 私鑰格式。

public:
 cli::array <System::Byte> ^ ExportMLDsaPrivateKey();
public byte[] ExportMLDsaPrivateKey();
member this.ExportMLDsaPrivateKey : unit -> byte[]
Public Function ExportMLDsaPrivateKey () As Byte()

傳回

Byte[]

FIPS 204 私鑰。

例外狀況

目前的實例無法匯出私鑰。

-或-

匯出金鑰時發生錯誤。

對象已經處置。

適用於

ExportMLDsaPrivateKey(Span<Byte>)

來源:
MLDsa.cs
來源:
MLDsa.cs
來源:
MLDsa.cs

匯出目前的金鑰,採用 FIPS 204 私鑰格式。

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))

參數

destination
Span<Byte>

接收私鑰的緩衝區。 其長度必須恰好 PrivateKeySizeInBytes為 。

例外狀況

destination 是接收私鑰的錯誤長度。

匯出金鑰時發生錯誤。

適用於