次の方法で共有


SP800108HmacCounterKdf.DeriveKey メソッド

定義

オーバーロード

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

指定した長さのキーを派生させます。

DeriveKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

指定した長さのキーを派生させます。

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

バッファーに派生キーを入力します。

DeriveKey(ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

指定した長さのキーを派生させます。

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

バッファーに派生キーを入力します。

DeriveKey(String, String, Int32)

指定した長さのキーを派生させます。

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

ソース:
SP800108HmacCounterKdf.cs
ソース:
SP800108HmacCounterKdf.cs

指定した長さのキーを派生させます。

public:
 cli::array <System::Byte> ^ DeriveKey(cli::array <System::Byte> ^ label, cli::array <System::Byte> ^ context, int derivedKeyLengthInBytes);
public byte[] DeriveKey (byte[] label, byte[] context, int derivedKeyLengthInBytes);
member this.DeriveKey : byte[] * byte[] * int -> byte[]
Public Function DeriveKey (label As Byte(), context As Byte(), derivedKeyLengthInBytes As Integer) As Byte()

パラメーター

label
Byte[]

派生キーの目的を識別するラベル。

context
Byte[]

派生キーに関連する情報を含むコンテキスト。

derivedKeyLengthInBytes
Int32

派生キーの長さ (バイト単位)。

戻り値

Byte[]

派生キーを含む配列。

例外

labelnull です。

または

contextnull です。

derivedKeyLengthInBytes が負であるか、派生可能な最大バイト数を超えています。

適用対象

DeriveKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

ソース:
SP800108HmacCounterKdf.cs
ソース:
SP800108HmacCounterKdf.cs

指定した長さのキーを派生させます。

public:
 cli::array <System::Byte> ^ DeriveKey(ReadOnlySpan<System::Byte> label, ReadOnlySpan<System::Byte> context, int derivedKeyLengthInBytes);
public byte[] DeriveKey (ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes);
member this.DeriveKey : ReadOnlySpan<byte> * ReadOnlySpan<byte> * int -> byte[]
Public Function DeriveKey (label As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), derivedKeyLengthInBytes As Integer) As Byte()

パラメーター

label
ReadOnlySpan<Byte>

派生キーの目的を識別するラベル。

context
ReadOnlySpan<Byte>

派生キーに関連する情報を含むコンテキスト。

derivedKeyLengthInBytes
Int32

派生キーの長さ (バイト単位)。

戻り値

Byte[]

派生キーを含む配列。

例外

derivedKeyLengthInBytes が負であるか、派生可能な最大バイト数を超えています。

適用対象

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

ソース:
SP800108HmacCounterKdf.cs
ソース:
SP800108HmacCounterKdf.cs

バッファーに派生キーを入力します。

public:
 void DeriveKey(ReadOnlySpan<System::Byte> label, ReadOnlySpan<System::Byte> context, Span<System::Byte> destination);
public void DeriveKey (ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination);
member this.DeriveKey : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> unit
Public Sub DeriveKey (label As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), destination As Span(Of Byte))

パラメーター

label
ReadOnlySpan<Byte>

派生キーの目的を識別するラベル。

context
ReadOnlySpan<Byte>

派生キーに関連する情報を含むコンテキスト。

destination
Span<Byte>

派生キーを受け取るバッファー。

例外

labelnull です。

または

contextnull です。

destination が、派生可能な最大バイト数を超えています。

適用対象

DeriveKey(ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

ソース:
SP800108HmacCounterKdf.cs
ソース:
SP800108HmacCounterKdf.cs

指定した長さのキーを派生させます。

public:
 cli::array <System::Byte> ^ DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes);
public byte[] DeriveKey (ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes);
member this.DeriveKey : ReadOnlySpan<char> * ReadOnlySpan<char> * int -> byte[]
Public Function DeriveKey (label As ReadOnlySpan(Of Char), context As ReadOnlySpan(Of Char), derivedKeyLengthInBytes As Integer) As Byte()

パラメーター

label
ReadOnlySpan<Char>

派生キーの目的を識別するラベル。

context
ReadOnlySpan<Char>

派生キーに関連する情報を含むコンテキスト。

derivedKeyLengthInBytes
Int32

派生キーの長さ (バイト単位)。

戻り値

Byte[]

派生キーを含む配列。

例外

derivedKeyLengthInBytes が負であるか、派生可能な最大バイト数を超えています。

label または context 、UTF-8 に変換できないテキストが含まれています。

注釈

labelcontext は、UTF-8 エンコードを使用してバイトに変換されます。 他のエンコーディングの場合は、目的のエンコーディングを使用して変換を実行し、ラベルとコンテキストをバイトシーケンスとして受け入れるオーバーロードを使用します。

適用対象

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

ソース:
SP800108HmacCounterKdf.cs
ソース:
SP800108HmacCounterKdf.cs

バッファーに派生キーを入力します。

public:
 void DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<System::Byte> destination);
public void DeriveKey (ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination);
member this.DeriveKey : ReadOnlySpan<char> * ReadOnlySpan<char> * Span<byte> -> unit
Public Sub DeriveKey (label As ReadOnlySpan(Of Char), context As ReadOnlySpan(Of Char), destination As Span(Of Byte))

パラメーター

label
ReadOnlySpan<Char>

派生キーの目的を識別するラベル。

context
ReadOnlySpan<Char>

派生キーに関連する情報を含むコンテキスト。

destination
Span<Byte>

派生キーを受け取るバッファー。

例外

destination が、派生可能な最大バイト数を超えています。

label または context 、UTF-8 に変換できないテキストが含まれています。

注釈

labelcontext は、UTF-8 エンコードを使用してバイトに変換されます。 他のエンコーディングの場合は、目的のエンコーディングを使用して変換を実行し、ラベルとコンテキストをバイトシーケンスとして受け入れるオーバーロードを使用します。

適用対象

DeriveKey(String, String, Int32)

ソース:
SP800108HmacCounterKdf.cs
ソース:
SP800108HmacCounterKdf.cs

指定した長さのキーを派生させます。

public:
 cli::array <System::Byte> ^ DeriveKey(System::String ^ label, System::String ^ context, int derivedKeyLengthInBytes);
public byte[] DeriveKey (string label, string context, int derivedKeyLengthInBytes);
member this.DeriveKey : string * string * int -> byte[]
Public Function DeriveKey (label As String, context As String, derivedKeyLengthInBytes As Integer) As Byte()

パラメーター

label
String

派生キーの目的を識別するラベル。

context
String

派生キーに関連する情報を含むコンテキスト。

derivedKeyLengthInBytes
Int32

派生キーの長さ (バイト単位)。

戻り値

Byte[]

派生キーを含む配列。

例外

labelnull です。

または

contextnull です。

derivedKeyLengthInBytes が負であるか、派生可能な最大バイト数を超えています。

label または context 、UTF-8 に変換できないテキストが含まれています。

注釈

labelcontext は、UTF-8 エンコードを使用してバイトに変換されます。 他のエンコーディングの場合は、目的のエンコーディングを使用して変換を実行し、ラベルとコンテキストをバイトシーケンスとして受け入れるオーバーロードを使用します。

適用対象