語言

MLDsa.SignPreHashCore 方法

定義

當在派生類別中覆寫時,會計算指定雜湊值及上下文的前雜湊簽名,並將其寫入所提供的緩衝區。

protected:
 abstract void SignPreHashCore(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> context, System::String ^ hashAlgorithmOid, Span<System::Byte> destination);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination);
protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member SignPreHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * Span<byte> -> unit
abstract member SignPreHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * Span<byte> -> unit
Protected MustOverride Sub SignPreHashCore (hash As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), hashAlgorithmOid As String, destination As Span(Of Byte))

參數

hash
ReadOnlySpan<Byte>

要簽名的哈希。

context
ReadOnlySpan<Byte>

標誌性的語境。

hashAlgorithmOid
String

用於建立雜湊值的雜湊演算法的OID。

destination
Span<Byte>

接收簽名的緩衝區,且大小永遠是演算法的正確大小。

屬性

例外狀況

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

適用於