HKDF.Expand メソッド

定義

オーバーロード

Expand(HashAlgorithmName, Byte[], Int32, Byte[])

HKDF-Expand 関数を実行します。RFC5869 のセクション 2.3 を参照してください。

Expand(HashAlgorithmName, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

HKDF-Expand関数を実行します。 RFC5869 のセクション 2.3 を参照してください。

Expand(HashAlgorithmName, Byte[], Int32, Byte[])

ソース:
HKDF.cs
ソース:
HKDF.cs
ソース:
HKDF.cs

HKDF-Expand 関数を実行します。RFC5869 のセクション 2.3 を参照してください。

public static byte[] Expand (System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, byte[] prk, int outputLength, byte[]? info = default);
static member Expand : System.Security.Cryptography.HashAlgorithmName * byte[] * int * byte[] -> byte[]
Public Shared Function Expand (hashAlgorithmName As HashAlgorithmName, prk As Byte(), outputLength As Integer, Optional info As Byte() = Nothing) As Byte()

パラメーター

hashAlgorithmName
HashAlgorithmName

HMAC 操作に使用されるハッシュ アルゴリズム。

prk
Byte[]

指定したハッシュ アルゴリズムの出力バイト配列 (通常は抽出ステップからの出力) の少なくとも長さの擬似ランダム キー。

outputLength
Int32

出力キー マテリアルの長さ。

info
Byte[]

省略可能な、コンテキストとアプリケーションに固有の情報。

戻り値

Byte[]

出力キー マテリアル。

例外

prknull です。

outputLength が 1 未満です。

適用対象

Expand(HashAlgorithmName, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

ソース:
HKDF.cs
ソース:
HKDF.cs
ソース:
HKDF.cs

HKDF-Expand関数を実行します。 RFC5869 のセクション 2.3 を参照してください。

public:
 static void Expand(System::Security::Cryptography::HashAlgorithmName hashAlgorithmName, ReadOnlySpan<System::Byte> prk, Span<System::Byte> output, ReadOnlySpan<System::Byte> info);
public static void Expand (System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info);
static member Expand : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * Span<byte> * ReadOnlySpan<byte> -> unit
Public Shared Sub Expand (hashAlgorithmName As HashAlgorithmName, prk As ReadOnlySpan(Of Byte), output As Span(Of Byte), info As ReadOnlySpan(Of Byte))

パラメーター

hashAlgorithmName
HashAlgorithmName

HMAC 操作に使用されるハッシュ アルゴリズム。

prk
ReadOnlySpan<Byte>

指定したハッシュ アルゴリズムの出力バイト配列 (通常は抽出ステップからの出力) と同じ長さの擬似乱数キー。

output
Span<Byte>

出力キー マテリアルを受け取る宛先バッファー。

info
ReadOnlySpan<Byte>

コンテキストとアプリケーションに固有の情報 (空のスパンにすることができます)。

例外

output が空であるか、許容される最大長を超えています。

適用対象