HMACMD5.TryHashData 메서드

정의

MD5 알고리즘을 사용하여 데이터의 HMAC를 계산하려고 시도합니다.

public:
 static bool TryHashData(ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member TryHashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * int -> bool
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

매개 변수

key
ReadOnlySpan<Byte>

HMAC 키입니다.

source
ReadOnlySpan<Byte>

HMAC에 대한 데이터입니다.

destination
Span<Byte>

HMAC 값을 받을 버퍼입니다.

bytesWritten
Int32

이 메서드가 반환되면 .에 destination기록된 총 바이트 수를 포함합니다.

반품

false계산된 해시 destination 를 보유하기에 너무 작으면 true 그렇지 않습니다.

특성

적용 대상