Editare

Partajați prin


SP800108HmacCounterKdf Constructors

Definition

Overloads

SP800108HmacCounterKdf(Byte[], HashAlgorithmName)

Initializes a new instance of SP800108HmacCounterKdf using a specified key and HMAC algorithm.

SP800108HmacCounterKdf(ReadOnlySpan<Byte>, HashAlgorithmName)

Initializes a new instance of SP800108HmacCounterKdf using a specified key and HMAC algorithm.

SP800108HmacCounterKdf(Byte[], HashAlgorithmName)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

Initializes a new instance of SP800108HmacCounterKdf using a specified key and HMAC algorithm.

public:
 SP800108HmacCounterKdf(cli::array <System::Byte> ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public SP800108HmacCounterKdf (byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
new System.Security.Cryptography.SP800108HmacCounterKdf : byte[] * System.Security.Cryptography.HashAlgorithmName -> System.Security.Cryptography.SP800108HmacCounterKdf
Public Sub New (key As Byte(), hashAlgorithm As HashAlgorithmName)

Parameters

key
Byte[]

The key-derivation key.

hashAlgorithm
HashAlgorithmName

The HMAC algorithm.

Exceptions

hashAlgorithm has a Name which is null.

-or-

key is null.

hashAlgorithm has a Name which is empty.

hashAlgorithm is not a known or supported hash algorithm.

The current platform does not have a supported implementation of HMAC.

Applies to

SP800108HmacCounterKdf(ReadOnlySpan<Byte>, HashAlgorithmName)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

Initializes a new instance of SP800108HmacCounterKdf using a specified key and HMAC algorithm.

public:
 SP800108HmacCounterKdf(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public SP800108HmacCounterKdf (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
new System.Security.Cryptography.SP800108HmacCounterKdf : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName -> System.Security.Cryptography.SP800108HmacCounterKdf
Public Sub New (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName)

Parameters

key
ReadOnlySpan<Byte>

The key-derivation key.

hashAlgorithm
HashAlgorithmName

The HMAC algorithm.

Exceptions

hashAlgorithm has a Name which is null.

hashAlgorithm has a Name which is empty.

hashAlgorithm is not a known or supported hash algorithm.

The current platform does not have a supported implementation of HMAC.

Applies to