共用方式為


KmacXof128.HashData 方法

定義

多載

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

使用 KMACXOF128 演算法計算數據的哈希。

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

使用 KMACXOF128 演算法計算數據流的哈希。

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

使用 KMACXOF128 演算法計算數據流的哈希。

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

使用 KMACXOF128 演算法計算數據流的哈希。

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

使用 KMACXOF128 演算法計算數據的哈希。

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

使用 KMACXOF128 演算法計算數據的哈希。

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

來源:
KmacXof128.cs

使用 KMACXOF128 演算法計算數據的哈希。

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 為負數。

keysourcenull

作業期間發生錯誤。

平臺不支援KMACXOF128。 呼叫端可以使用 IsSupported 屬性來判斷平臺是否支援KMACXOF128。

適用於

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

來源:
KmacXof128.cs

使用 KMACXOF128 演算法計算數據流的哈希。

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 為負數。

keysourcenull

作業期間發生錯誤。

平臺不支援KMACXOF128。 呼叫端可以使用 IsSupported 屬性來判斷平臺是否支援KMACXOF128。

適用於

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

來源:
KmacXof128.cs

使用 KMACXOF128 演算法計算數據流的哈希。

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

作業期間發生錯誤。

平臺不支援KMACXOF128。 呼叫端可以使用 IsSupported 屬性來判斷平臺是否支援KMACXOF128。

適用於

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

來源:
KmacXof128.cs

使用 KMACXOF128 演算法計算數據流的哈希。

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

作業期間發生錯誤。

平臺不支援KMACXOF128。 呼叫端可以使用 IsSupported 屬性來判斷平臺是否支援KMACXOF128。

適用於

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

來源:
KmacXof128.cs

使用 KMACXOF128 演算法計算數據的哈希。

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 為負數。

作業期間發生錯誤。

平臺不支援KMACXOF128。 呼叫端可以使用 IsSupported 屬性來判斷平臺是否支援KMACXOF128。

適用於

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

來源:
KmacXof128.cs

使用 KMACXOF128 演算法計算數據的哈希。

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>

選擇性的自定義字串。 預設值不是自定義字串。

例外狀況

作業期間發生錯誤。

平臺不支援KMACXOF128。 呼叫端可以使用 IsSupported 屬性來判斷平臺是否支援KMACXOF128。

適用於