Shake256.GetHashAndReset 方法

定義

多載

GetHashAndReset(Int32)

擷取從先前呼叫 AppendData 方法所累積之資料的雜湊,並將物件重設為其初始狀態。

GetHashAndReset(Span<Byte>)

使用先前呼叫 AppendData 方法所累積之資料的雜湊填滿緩衝區,並將物件重設為其初始狀態。

GetHashAndReset(Int32)

來源:
Shake256.cs
來源:
Shake256.cs

擷取從先前呼叫 AppendData 方法所累積之資料的雜湊,並將物件重設為其初始狀態。

public:
 cli::array <System::Byte> ^ GetHashAndReset(int outputLength);
public byte[] GetHashAndReset (int outputLength);
member this.GetHashAndReset : int -> byte[]
Public Function GetHashAndReset (outputLength As Integer) As Byte()

參數

outputLength
Int32

要產生之雜湊的大小。

傳回

Byte[]

計算的雜湊。

例外狀況

outputLength 為負。

物件已經處置。

適用於

GetHashAndReset(Span<Byte>)

來源:
Shake256.cs
來源:
Shake256.cs

使用先前呼叫 AppendData 方法所累積之資料的雜湊填滿緩衝區,並將物件重設為其初始狀態。

public:
 void GetHashAndReset(Span<System::Byte> destination);
public void GetHashAndReset (Span<byte> destination);
member this.GetHashAndReset : Span<byte> -> unit
Public Sub GetHashAndReset (destination As Span(Of Byte))

參數

destination
Span<Byte>

要填入雜湊的緩衝區。

例外狀況

物件已經處置。

適用於