Rediger

Del via


KmacXof256 Constructors

Definition

Overloads

KmacXof256(Byte[], Byte[])

Initializes a new instance of the KmacXof256 class.

KmacXof256(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Initializes a new instance of the KmacXof256 class.

KmacXof256(Byte[], Byte[])

Source:
KmacXof256.cs

Initializes a new instance of the KmacXof256 class.

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

Parameters

key
Byte[]

The KMAC key.

customizationString
Byte[]

An optional customization string. The default is no customization string.

Exceptions

key is null.

An error has occurred creating an instance of the algorithm.

The platform does not support KMACXOF256. Callers can use the IsSupported property to determine if the platform supports KMACXOF256.

Applies to

KmacXof256(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Source:
KmacXof256.cs

Initializes a new instance of the KmacXof256 class.

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

Parameters

key
ReadOnlySpan<Byte>

The KMAC key.

customizationString
ReadOnlySpan<Byte>

An optional customization string. The default is no customization string.

Exceptions

An error has occurred creating an instance of the algorithm.

The platform does not support KMACXOF256. Callers can use the IsSupported property to determine if the platform supports KMACXOF256.

Applies to