語言

MLDsa.SignMu 方法

定義

符號為指定的外部計算簽名 mu(μ)值。

多載

名稱 Description
SignMu(Byte[])

符號為指定的外部計算簽名 mu(μ)值。

SignMu(ReadOnlySpan<Byte>)

符號為指定的外部計算簽名 mu(μ)值。

SignMu(ReadOnlySpan<Byte>, Span<Byte>)

對指定的外部計算簽章 mu(μ) 值進行簽名,並將簽章寫入所提供的緩衝區。

SignMu(Byte[])

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

符號為指定的外部計算簽名 mu(μ)值。

public:
 cli::array <System::Byte> ^ SignMu(cli::array <System::Byte> ^ externalMu);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] SignMu(byte[] externalMu);
public byte[] SignMu(byte[] externalMu);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.SignMu : byte[] -> byte[]
member this.SignMu : byte[] -> byte[]
Public Function SignMu (externalMu As Byte()) As Byte()

參數

externalMu
Byte[]

簽名的 mu 值。

傳回

Byte[]

ML-DSA 為指定的 mu 值簽名。

屬性

例外狀況

externalMu 是 null。

適用於

SignMu(ReadOnlySpan<Byte>)

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

符號為指定的外部計算簽名 mu(μ)值。

public:
 cli::array <System::Byte> ^ SignMu(ReadOnlySpan<System::Byte> externalMu);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] SignMu(ReadOnlySpan<byte> externalMu);
public byte[] SignMu(ReadOnlySpan<byte> externalMu);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.SignMu : ReadOnlySpan<byte> -> byte[]
member this.SignMu : ReadOnlySpan<byte> -> byte[]
Public Function SignMu (externalMu As ReadOnlySpan(Of Byte)) As Byte()

參數

externalMu
ReadOnlySpan<Byte>

簽名的 mu 值。

傳回

Byte[]

ML-DSA 為指定的 mu 值簽名。

屬性

例外狀況

其中的 externalMu 緩衝區長度與簽名 mu 值不符。

這個實例已經被處理掉了。

該實例僅代表一個公鑰。

-或-

在簽署雜湊值時發生錯誤。

目前平台不支援使用外部計算的 mu 值簽署。

另請參閱

適用於

SignMu(ReadOnlySpan<Byte>, Span<Byte>)

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

對指定的外部計算簽章 mu(μ) 值進行簽名,並將簽章寫入所提供的緩衝區。

public:
 void SignMu(ReadOnlySpan<System::Byte> externalMu, Span<System::Byte> destination);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public void SignMu(ReadOnlySpan<byte> externalMu, Span<byte> destination);
public void SignMu(ReadOnlySpan<byte> externalMu, Span<byte> destination);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.SignMu : ReadOnlySpan<byte> * Span<byte> -> unit
member this.SignMu : ReadOnlySpan<byte> * Span<byte> -> unit
Public Sub SignMu (externalMu As ReadOnlySpan(Of Byte), destination As Span(Of Byte))

參數

externalMu
ReadOnlySpan<Byte>

簽名的 mu 值。

destination
Span<Byte>

接收簽名的緩衝區。 其長度必須恰好 SignatureSizeInBytes為 。

屬性

例外狀況

其中的 externalMu 緩衝區長度與簽名 mu 值不符。

-或-

該 destination 緩衝區長度錯誤,無法接收簽章。

這個實例已經被處理掉了。

該實例僅代表一個公鑰。

-或-

在簽署雜湊值時發生錯誤。

目前平台不支援使用外部計算的 mu 值簽署。

另請參閱

適用於