IncrementalHash.GetHashAndReset 方法

定義

多載

GetHashAndReset()

擷取先前對 AppendData 方法的呼叫所累積之資料的雜湊或雜湊式訊息驗證碼 (HMAC),並將物件重設為其初始狀態。

GetHashAndReset(Span<Byte>)

擷取先前對 AppendData(ReadOnlySpan<Byte>) 方法的呼叫所累積之資料的雜湊或雜湊式訊息驗證碼 (HMAC),並將物件重設為其初始狀態。

GetHashAndReset()

來源:
IncrementalHash.cs
來源:
IncrementalHash.cs
來源:
IncrementalHash.cs

擷取先前對 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>)

來源:
IncrementalHash.cs
來源:
IncrementalHash.cs
來源:
IncrementalHash.cs

擷取先前對 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
Span<Byte>

要接收雜湊或 HMAC 值的緩衝區。

傳回

寫入至 destination 的位元組數。

例外狀況

destination 具有小於 HashLengthInBytesLength 值。

物件已經處置。

適用於