IncrementalHash.TryGetHashAndReset(Span<Byte>, Int32) Méthode

Définition

Tente de finaliser le calcul du hachage après que les dernières données ont été traitées par l’algorithme de hachage.

public:
 bool TryGetHashAndReset(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryGetHashAndReset (Span<byte> destination, out int bytesWritten);
member this.TryGetHashAndReset : Span<byte> * int -> bool
Public Function TryGetHashAndReset (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Paramètres

destination
Span<Byte>

Mémoire tampon destinée à recevoir la valeur du hachage ou du code HMAC (Hash-Based Message Authentication Code).

bytesWritten
Int32

Quand cette méthode est retournée, nombre total d’octets écrits dans destination. Ce paramètre est traité comme étant non initialisé.

Retours

Boolean

true si destination est suffisamment long pour recevoir la valeur du hachage ou de HMAC ; sinon, false.

Exceptions

L’objet IncrementalHash a déjà été supprimé.

S’applique à