IncrementalHash.GetCurrentHash 方法

定義

多載

GetCurrentHash()

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

GetCurrentHash(Span<Byte>)

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

GetCurrentHash()

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

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

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

傳回

Byte[]

已計算的雜湊或 HMAC。

例外狀況

物件已經處置。

適用於

GetCurrentHash(Span<Byte>)

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

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

public:
 int GetCurrentHash(Span<System::Byte> destination);
public int GetCurrentHash (Span<byte> destination);
member this.GetCurrentHash : Span<byte> -> int
Public Function GetCurrentHash (destination As Span(Of Byte)) As Integer

參數

destination
Span<Byte>

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

傳回

寫入至 destination 的位元組數。

例外狀況

destination 具有小於 HashLengthInBytesLength 值。

物件已經處置。

適用於