Kmac256.HashData 메서드

정의

오버로드

HashData(Byte[], Byte[], Int32, Byte[])

KMAC256 알고리즘을 사용하여 데이터의 해시를 계산합니다.

HashData(Byte[], Stream, Int32, Byte[])

KMAC256 알고리즘을 사용하여 스트림의 해시를 계산합니다.

HashData(ReadOnlySpan<Byte>, Stream, Int32, ReadOnlySpan<Byte>)

KMAC256 알고리즘을 사용하여 스트림의 해시를 계산합니다.

HashData(ReadOnlySpan<Byte>, Stream, Span<Byte>, ReadOnlySpan<Byte>)

KMAC256 알고리즘을 사용하여 스트림의 해시를 계산합니다.

HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32, ReadOnlySpan<Byte>)

KMAC256 알고리즘을 사용하여 데이터의 해시를 계산합니다.

HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

KMAC256 알고리즘을 사용하여 데이터의 해시를 계산합니다.

HashData(Byte[], Byte[], Int32, Byte[])

Source:
Kmac256.cs

KMAC256 알고리즘을 사용하여 데이터의 해시를 계산합니다.

public static byte[] HashData (byte[] key, byte[] source, int outputLength, byte[]? customizationString = default);
static member HashData : byte[] * byte[] * int * byte[] -> byte[]
Public Shared Function HashData (key As Byte(), source As Byte(), outputLength As Integer, Optional customizationString As Byte() = Nothing) As Byte()

매개 변수

key
Byte[]

KMAC 키입니다.

source
Byte[]

해시할 데이터입니다.

outputLength
Int32

생성할 해시의 크기입니다.

customizationString
Byte[]

선택적 사용자 지정 문자열입니다. 기본값은 사용자 지정 문자열이 아닙니다.

반환

Byte[]

데이터의 해시입니다.

예외

outputLength 음수입니다.

key 또는 sourcenull.

작업 중에 오류가 발생했습니다.

플랫폼은 KMAC256 지원하지 않습니다. 호출자는 IsSupported 속성을 사용하여 플랫폼에서 KMAC256 지원하는지 확인할 수 있습니다.

적용 대상

HashData(Byte[], Stream, Int32, Byte[])

Source:
Kmac256.cs

KMAC256 알고리즘을 사용하여 스트림의 해시를 계산합니다.

public static byte[] HashData (byte[] key, System.IO.Stream source, int outputLength, byte[]? customizationString = default);
static member HashData : byte[] * System.IO.Stream * int * byte[] -> byte[]
Public Shared Function HashData (key As Byte(), source As Stream, outputLength As Integer, Optional customizationString As Byte() = Nothing) As Byte()

매개 변수

key
Byte[]

KMAC 키입니다.

source
Stream

해시할 스트림입니다.

outputLength
Int32

생성할 해시의 크기입니다.

customizationString
Byte[]

선택적 사용자 지정 문자열입니다. 기본값은 사용자 지정 문자열이 아닙니다.

반환

Byte[]

데이터의 해시입니다.

예외

source 읽기를 지원하지 않습니다.

outputLength 음수입니다.

key 또는 sourcenull.

작업 중에 오류가 발생했습니다.

플랫폼은 KMAC256 지원하지 않습니다. 호출자는 IsSupported 속성을 사용하여 플랫폼에서 KMAC256 지원하는지 확인할 수 있습니다.

적용 대상

HashData(ReadOnlySpan<Byte>, Stream, Int32, ReadOnlySpan<Byte>)

Source:
Kmac256.cs

KMAC256 알고리즘을 사용하여 스트림의 해시를 계산합니다.

public static byte[] HashData (ReadOnlySpan<byte> key, System.IO.Stream source, int outputLength, ReadOnlySpan<byte> customizationString = default);
static member HashData : ReadOnlySpan<byte> * System.IO.Stream * int * ReadOnlySpan<byte> -> byte[]
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As Stream, outputLength As Integer, Optional customizationString As ReadOnlySpan(Of Byte) = Nothing) As Byte()

매개 변수

key
ReadOnlySpan<Byte>

KMAC 키입니다.

source
Stream

해시할 스트림입니다.

outputLength
Int32

생성할 해시의 크기입니다.

customizationString
ReadOnlySpan<Byte>

선택적 사용자 지정 문자열입니다. 기본값은 사용자 지정 문자열이 아닙니다.

반환

Byte[]

데이터의 해시입니다.

예외

source 읽기를 지원하지 않습니다.

outputLength 음수입니다.

source null.

작업 중에 오류가 발생했습니다.

플랫폼은 KMAC256 지원하지 않습니다. 호출자는 IsSupported 속성을 사용하여 플랫폼에서 KMAC256 지원하는지 확인할 수 있습니다.

적용 대상

HashData(ReadOnlySpan<Byte>, Stream, Span<Byte>, ReadOnlySpan<Byte>)

Source:
Kmac256.cs

KMAC256 알고리즘을 사용하여 스트림의 해시를 계산합니다.

public static void HashData (ReadOnlySpan<byte> key, System.IO.Stream source, Span<byte> destination, ReadOnlySpan<byte> customizationString = default);
static member HashData : ReadOnlySpan<byte> * System.IO.Stream * Span<byte> * ReadOnlySpan<byte> -> unit
Public Shared Sub HashData (key As ReadOnlySpan(Of Byte), source As Stream, destination As Span(Of Byte), Optional customizationString As ReadOnlySpan(Of Byte) = Nothing)

매개 변수

key
ReadOnlySpan<Byte>

KMAC 키입니다.

source
Stream

해시할 스트림입니다.

destination
Span<Byte>

해시로 채울 버퍼입니다.

customizationString
ReadOnlySpan<Byte>

선택적 사용자 지정 문자열입니다. 기본값은 사용자 지정 문자열이 아닙니다.

예외

source 읽기를 지원하지 않습니다.

source null.

작업 중에 오류가 발생했습니다.

플랫폼은 KMAC256 지원하지 않습니다. 호출자는 IsSupported 속성을 사용하여 플랫폼에서 KMAC256 지원하는지 확인할 수 있습니다.

적용 대상

HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32, ReadOnlySpan<Byte>)

Source:
Kmac256.cs

KMAC256 알고리즘을 사용하여 데이터의 해시를 계산합니다.

public static byte[] HashData (ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, int outputLength, ReadOnlySpan<byte> customizationString = default);
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * int * ReadOnlySpan<byte> -> byte[]
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte), outputLength As Integer, Optional customizationString As ReadOnlySpan(Of Byte) = Nothing) As Byte()

매개 변수

key
ReadOnlySpan<Byte>

KMAC 키입니다.

source
ReadOnlySpan<Byte>

해시할 데이터입니다.

outputLength
Int32

생성할 해시의 크기입니다.

customizationString
ReadOnlySpan<Byte>

선택적 사용자 지정 문자열입니다. 기본값은 사용자 지정 문자열이 아닙니다.

반환

Byte[]

데이터의 해시입니다.

예외

outputLength 음수입니다.

작업 중에 오류가 발생했습니다.

플랫폼은 KMAC256 지원하지 않습니다. 호출자는 IsSupported 속성을 사용하여 플랫폼에서 KMAC256 지원하는지 확인할 수 있습니다.

적용 대상

HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

Source:
Kmac256.cs

KMAC256 알고리즘을 사용하여 데이터의 해시를 계산합니다.

public static void HashData (ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, ReadOnlySpan<byte> customizationString = default);
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * ReadOnlySpan<byte> -> unit
Public Shared Sub HashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), Optional customizationString As ReadOnlySpan(Of Byte) = Nothing)

매개 변수

key
ReadOnlySpan<Byte>

KMAC 키입니다.

source
ReadOnlySpan<Byte>

해시할 데이터입니다.

destination
Span<Byte>

해시로 채울 버퍼입니다.

customizationString
ReadOnlySpan<Byte>

선택적 사용자 지정 문자열입니다. 기본값은 사용자 지정 문자열이 아닙니다.

예외

작업 중에 오류가 발생했습니다.

플랫폼은 KMAC256 지원하지 않습니다. 호출자는 IsSupported 속성을 사용하여 플랫폼에서 KMAC256 지원하는지 확인할 수 있습니다.

적용 대상