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)

Source:
SP800108HmacCounterKdf.cs
Source:
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)

Source:
SP800108HmacCounterKdf.cs
Source:
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>)

Source:
SP800108HmacCounterKdf.cs
Source:
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)

Source:
SP800108HmacCounterKdf.cs
Source:
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>)

Source:
SP800108HmacCounterKdf.cs
Source:
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)

Source:
SP800108HmacCounterKdf.cs
Source:
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 인코딩을 사용하여 바이트로 변환됩니다. 다른 인코딩의 경우 원하는 인코딩을 사용하여 변환을 수행하고 레이블 및 컨텍스트를 바이트 시퀀스로 허용하는 오버로드를 사용합니다.

적용 대상