IncrementalHash.GetHashAndReset 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetHashAndReset() |
擷取先前對 AppendData 方法的呼叫所累積之資料的雜湊或雜湊式訊息驗證碼 (HMAC),並將物件重設為其初始狀態。 |
GetHashAndReset(Span<Byte>) |
擷取先前對 AppendData(ReadOnlySpan<Byte>) 方法的呼叫所累積之資料的雜湊或雜湊式訊息驗證碼 (HMAC),並將物件重設為其初始狀態。 |
GetHashAndReset()
擷取先前對 AppendData 方法的呼叫所累積之資料的雜湊或雜湊式訊息驗證碼 (HMAC),並將物件重設為其初始狀態。
public:
cli::array <System::Byte> ^ GetHashAndReset();
public byte[] GetHashAndReset ();
member this.GetHashAndReset : unit -> byte[]
Public Function GetHashAndReset () As Byte()
傳回
Byte[]
已計算的雜湊或 HMAC。
例外狀況
適用於
GetHashAndReset(Span<Byte>)
擷取先前對 AppendData(ReadOnlySpan<Byte>) 方法的呼叫所累積之資料的雜湊或雜湊式訊息驗證碼 (HMAC),並將物件重設為其初始狀態。
public:
int GetHashAndReset(Span<System::Byte> destination);
public int GetHashAndReset (Span<byte> destination);
member this.GetHashAndReset : Span<byte> -> int
Public Function GetHashAndReset (destination As Span(Of Byte)) As Integer
參數
傳回
寫入至 destination
的位元組數。
例外狀況
destination
具有小於 HashLengthInBytes 的 Length 值。
物件已經處置。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應