Udostępnij przez


HMACMD5.TryHashData Metoda

Definicja

Próbuje obliczyć HMAC danych przy użyciu algorytmu MD5.

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);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
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
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
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

Parametry

key
ReadOnlySpan<Byte>

Klucz HMAC.

source
ReadOnlySpan<Byte>

Dane do HMAC.

destination
Span<Byte>

Bufor do odbierania wartości HMAC.

bytesWritten
Int32

Gdy ta metoda zostanie zwrócona, zawiera całkowitą liczbę bajtów zapisanych w destinationpliku .

Zwraca

false jeśli destination jest za mała, aby przechowywać obliczony skrót, true w przeciwnym razie.

Atrybuty

Dotyczy