语言

NonCryptographicHashAlgorithm.GetHashAndReset 方法

定义

重载

名称 说明
GetHashAndReset()

获取当前计算的哈希值并清除累积状态。

GetHashAndReset(Span<Byte>)

写入计算的哈希值,然后 destination 清除累积状态。

GetHashAndReset()

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

获取当前计算的哈希值并清除累积状态。

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

返回

Byte[]

已提供数据的哈希值。

适用于

GetHashAndReset(Span<Byte>)

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

写入计算的哈希值,然后 destination 清除累积状态。

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>

接收计算哈希值的缓冲区。

返回

写入 destination到的字节数,始终 HashLengthInBytes如此。

例外

destination 短于 HashLengthInBytes。

适用于