Прочетете на английски Редактиране

Споделяне чрез


KmacXof128 Constructors

Definition

Overloads

KmacXof128(Byte[], Byte[])

Initializes a new instance of the KmacXof128 class.

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

Initializes a new instance of the KmacXof128 class.

KmacXof128(Byte[], Byte[])

Source:
KmacXof128.cs

Initializes a new instance of the KmacXof128 class.

C#
public KmacXof128(byte[] key, byte[]? customizationString = default);

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 KMACXOF128. Callers can use the IsSupported property to determine if the platform supports KMACXOF128.

Applies to

.NET 10 и .NET 9
Продукт Версии
.NET 9, 10

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

Source:
KmacXof128.cs

Initializes a new instance of the KmacXof128 class.

C#
public KmacXof128(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default);

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 KMACXOF128. Callers can use the IsSupported property to determine if the platform supports KMACXOF128.

Applies to

.NET 10 и .NET 9
Продукт Версии
.NET 9, 10