HKDF.DeriveKey メソッド

定義

オーバーロード

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

キー派生 HKDF Expand 関数と Extract 関数を実行します。

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

キー派生 HKDF Expand 関数と Extract 関数を実行します。

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

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

キー派生 HKDF Expand 関数と Extract 関数を実行します。

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

パラメーター

hashAlgorithmName
HashAlgorithmName

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

ikm
Byte[]

入力キー マテリアル。

outputLength
Int32

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

salt
Byte[]

省略可能な salt 値 (秘密ではない乱数値)。 指定されていない場合、既定では、指定されたハッシュ アルゴリズムの出力と同じ長さのバイト配列になります。

info
Byte[]

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

戻り値

Byte[]

出力キー マテリアル。

例外

ikmnull です。

outputLength が 1 未満です。

適用対象

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

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

キー派生 HKDF Expand 関数と Extract 関数を実行します。

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

パラメーター

hashAlgorithmName
HashAlgorithmName

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

ikm
ReadOnlySpan<Byte>

入力キー マテリアル。

output
Span<Byte>

出力キー マテリアルを表す出力バッファー。

salt
ReadOnlySpan<Byte>

salt 値 (秘密ではない乱数値)。

info
ReadOnlySpan<Byte>

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

例外

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

適用対象