Muokkaa

Jaa


IncrementalHash.GetCurrentHash Method

Definition

Overloads

GetCurrentHash()

Retrieves the hash or Hash-based Message Authentication Code (HMAC) for the data accumulated from prior calls to the AppendData(ReadOnlySpan<Byte>) methods, without resetting the object to its initial state.

GetCurrentHash(Span<Byte>)

Retrieves the hash or Hash-based Message Authentication Code (HMAC) for the data accumulated from prior calls to the AppendData(ReadOnlySpan<Byte>) methods, without resetting the object to its initial state.

GetCurrentHash()

Source:
IncrementalHash.cs
Source:
IncrementalHash.cs
Source:
IncrementalHash.cs

Retrieves the hash or Hash-based Message Authentication Code (HMAC) for the data accumulated from prior calls to the AppendData(ReadOnlySpan<Byte>) methods, without resetting the object to its initial state.

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

Returns

Byte[]

The computed hash or HMAC.

Exceptions

The object has already been disposed.

Applies to

GetCurrentHash(Span<Byte>)

Source:
IncrementalHash.cs
Source:
IncrementalHash.cs
Source:
IncrementalHash.cs

Retrieves the hash or Hash-based Message Authentication Code (HMAC) for the data accumulated from prior calls to the AppendData(ReadOnlySpan<Byte>) methods, without resetting the object to its initial state.

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

Parameters

destination
Span<Byte>

The buffer to receive the hash or HMAC value.

Returns

The number of bytes written to destination.

Exceptions

destination has a Length value less than HashLengthInBytes.

The object has already been disposed.

Applies to