IncrementalHash.GetHashAndReset Metodo

Definizione

Overload

GetHashAndReset()

Recupera l'hash o il codice HMAC (Hash-based Message Authentication Code) per i dati accumulati da chiamate precedenti ai metodi AppendData e reimposta l'oggetto allo stato iniziale.

GetHashAndReset(Span<Byte>)

Recupera l'hash o il codice HMAC (Hash-based Message Authentication Code) per i dati accumulati da chiamate precedenti ai metodi AppendData(ReadOnlySpan<Byte>) e reimposta l'oggetto per riportarlo allo stato iniziale.

GetHashAndReset()

Recupera l'hash o il codice HMAC (Hash-based Message Authentication Code) per i dati accumulati da chiamate precedenti ai metodi AppendData e reimposta l'oggetto allo stato iniziale.

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

Restituisce

Byte[]

L'hash o HMAC calcolato.

Eccezioni

L'oggetto IncrementalHash è già stato eliminato.

Si applica a

GetHashAndReset(Span<Byte>)

Recupera l'hash o il codice HMAC (Hash-based Message Authentication Code) per i dati accumulati da chiamate precedenti ai metodi AppendData(ReadOnlySpan<Byte>) e reimposta l'oggetto per riportarlo allo stato iniziale.

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

Parametri

destination
Span<Byte>

Buffer per ricevere il valore hash o HMAC.

Restituisce

Int32

Numero di byte scritti in destination.

Eccezioni

destination ha un valore Length minore di HashLengthInBytes.

L'oggetto è già stato eliminato.

Si applica a