共用方式為


Shake128.GetCurrentHash 方法

定義

多載

GetCurrentHash(Int32)

擷取從先前呼叫 AppendData 方法所累積之數據的哈希,而不將物件重設為其初始狀態。

GetCurrentHash(Span<Byte>)

使用先前呼叫 AppendData 方法所累積之數據的哈希填滿緩衝區,而不將物件重設為其初始狀態。

GetCurrentHash(Int32)

來源:
Shake128.cs
來源:
Shake128.cs

擷取從先前呼叫 AppendData 方法所累積之數據的哈希,而不將物件重設為其初始狀態。

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

參數

outputLength
Int32

要產生之哈希的大小。

傳回

Byte[]

計算的哈希。

例外狀況

outputLength 為負。

物件已經處置。

適用於

GetCurrentHash(Span<Byte>)

來源:
Shake128.cs
來源:
Shake128.cs

使用先前呼叫 AppendData 方法所累積之數據的哈希填滿緩衝區,而不將物件重設為其初始狀態。

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

參數

destination
Span<Byte>

要填入哈希的緩衝區。

例外狀況

物件已經處置。

適用於