IncrementalHash.GetCurrentHash 方法

定义

重载

GetCurrentHash()

在哈希或基于哈希的消息验证码 (HMAC) 中检索从之前对 AppendData(ReadOnlySpan<Byte>) 方法的调用中累积的数据,并将对象重置为初始状态。

GetCurrentHash(Span<Byte>)

在哈希或基于哈希的消息验证码 (HMAC) 中检索从之前对 AppendData(ReadOnlySpan<Byte>) 方法的调用中累积的数据,并将对象重置为初始状态。

GetCurrentHash()

在哈希或基于哈希的消息验证码 (HMAC) 中检索从之前对 AppendData(ReadOnlySpan<Byte>) 方法的调用中累积的数据,并将对象重置为初始状态。

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

返回

Byte[]

计算所得的哈希或 HMAC。

例外

对象已被释放。

适用于

GetCurrentHash(Span<Byte>)

在哈希或基于哈希的消息验证码 (HMAC) 中检索从之前对 AppendData(ReadOnlySpan<Byte>) 方法的调用中累积的数据,并将对象重置为初始状态。

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 值的缓冲区。

返回

Int32

写入到 destination 的字节数。

例外

destinationLength 值小于 HashLengthInBytes

对象已被释放。

适用于