SP800108HmacCounterKdf 构造函数

定义

重载

SP800108HmacCounterKdf(Byte[], HashAlgorithmName)

使用指定的键和 HMAC 算法初始化 的新实例 SP800108HmacCounterKdf

SP800108HmacCounterKdf(ReadOnlySpan<Byte>, HashAlgorithmName)

使用指定的键和 HMAC 算法初始化 的新实例 SP800108HmacCounterKdf

SP800108HmacCounterKdf(Byte[], HashAlgorithmName)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

使用指定的键和 HMAC 算法初始化 的新实例 SP800108HmacCounterKdf

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)

参数

key
Byte[]

密钥派生密钥。

hashAlgorithm
HashAlgorithmName

HMAC 算法。

例外

hashAlgorithm 具有一个 Name ,它是 null

keynull

hashAlgorithm 具有为 Name 空的 。

hashAlgorithm 不是已知或支持的哈希算法。

当前平台没有受支持的 HMAC 实现。

适用于

SP800108HmacCounterKdf(ReadOnlySpan<Byte>, HashAlgorithmName)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

使用指定的键和 HMAC 算法初始化 的新实例 SP800108HmacCounterKdf

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)

参数

key
ReadOnlySpan<Byte>

密钥派生密钥。

hashAlgorithm
HashAlgorithmName

HMAC 算法。

例外

hashAlgorithm 具有一个 Name ,它是 null

hashAlgorithm 具有为 Name 空的 。

hashAlgorithm 不是已知或支持的哈希算法。

当前平台没有受支持的 HMAC 实现。

适用于