KmacXof128 建構函式

定義

多載

KmacXof128(Byte[], Byte[])

初始化 KmacXof128 類別的新實例。

KmacXof128(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

初始化 KmacXof128 類別的新實例。

KmacXof128(Byte[], Byte[])

來源:
KmacXof128.cs

初始化 KmacXof128 類別的新實例。

public KmacXof128 (byte[] key, byte[]? customizationString = default);
new System.Security.Cryptography.KmacXof128 : byte[] * byte[] -> System.Security.Cryptography.KmacXof128
Public Sub New (key As Byte(), Optional customizationString As Byte() = Nothing)

參數

key
Byte[]

KMAC 金鑰。

customizationString
Byte[]

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

例外狀況

key null

建立演算法的實例時發生錯誤。

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

適用於

KmacXof128(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

來源:
KmacXof128.cs

初始化 KmacXof128 類別的新實例。

public KmacXof128 (ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default);
new System.Security.Cryptography.KmacXof128 : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> System.Security.Cryptography.KmacXof128
Public Sub New (key As ReadOnlySpan(Of Byte), Optional customizationString As ReadOnlySpan(Of Byte) = Nothing)

參數

key
ReadOnlySpan<Byte>

KMAC 金鑰。

customizationString
ReadOnlySpan<Byte>

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

例外狀況

建立演算法的實例時發生錯誤。

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

適用於