HMACSHA1.TryHashData Méthode

Définition

Tente de calculer le HMAC des données à l’aide de l’algorithme SHA-1.

public:
 static bool TryHashData(ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Paramètres

key
ReadOnlySpan<Byte>

Clé HMAC.

source
ReadOnlySpan<Byte>

Données sur HMAC.

destination
Span<Byte>

Mémoire tampon pour recevoir la valeur HMAC.

bytesWritten
Int32

Lorsque cette méthode retourne, contient le nombre total d’octets écrits en destination.

Retours

false s’il destination est trop petit pour contenir le hachage calculé, true sinon.

S’applique à