Share via


SP800108HmacCounterKdf.DeriveBytes 메서드

정의

오버로드

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

지정된 길이의 키를 파생합니다.

DeriveBytes(Byte[], HashAlgorithmName, String, String, Int32)

지정된 길이의 키를 파생합니다.

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

지정된 길이의 키를 파생합니다.

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

버퍼를 파생 키로 채웁니다.

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

지정된 길이의 키를 파생합니다.

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Span<Byte>)

버퍼를 파생 키로 채웁니다.

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

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

지정된 길이의 키를 파생합니다.

public:
 static cli::array <System::Byte> ^ DeriveBytes(cli::array <System::Byte> ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ label, cli::array <System::Byte> ^ context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] label, byte[] context, int derivedKeyLengthInBytes);
static member DeriveBytes : byte[] * System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] * int -> byte[]
Public Shared Function DeriveBytes (key As Byte(), hashAlgorithm As HashAlgorithmName, label As Byte(), context As Byte(), derivedKeyLengthInBytes As Integer) As Byte()

매개 변수

key
Byte[]

키 파생 키입니다.

hashAlgorithm
HashAlgorithmName

HMAC 알고리즘입니다.

label
Byte[]

파생 키의 용도를 식별하는 레이블입니다.

context
Byte[]

파생 키와 관련된 정보를 포함하는 컨텍스트입니다.

derivedKeyLengthInBytes
Int32

파생 키의 길이(바이트)입니다.

반환

Byte[]

파생 키를 포함하는 배열입니다.

예외

keynull입니다.

또는

labelnull입니다.

또는

contextnull입니다.

또는

hashAlgorithmName 입니다 null.

hashAlgorithm 에는 Name 비어 있는 가 있습니다.

derivedKeyLengthInBytes 가 음수이거나 파생될 수 있는 최대 바이트 수보다 큽니다.

hashAlgorithm 는 알려진 해시 알고리즘이나 지원되는 해시 알고리즘이 아닙니다.

현재 플랫폼에는 지원되는 HMAC 구현이 없습니다.

적용 대상

DeriveBytes(Byte[], HashAlgorithmName, String, String, Int32)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

지정된 길이의 키를 파생합니다.

public:
 static cli::array <System::Byte> ^ DeriveBytes(cli::array <System::Byte> ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::String ^ label, System::String ^ context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, string label, string context, int derivedKeyLengthInBytes);
static member DeriveBytes : byte[] * System.Security.Cryptography.HashAlgorithmName * string * string * int -> byte[]
Public Shared Function DeriveBytes (key As Byte(), hashAlgorithm As HashAlgorithmName, label As String, context As String, derivedKeyLengthInBytes As Integer) As Byte()

매개 변수

key
Byte[]

키 파생 키입니다.

hashAlgorithm
HashAlgorithmName

HMAC 알고리즘입니다.

label
String

파생 키의 용도를 식별하는 레이블입니다.

context
String

파생 키와 관련된 정보를 포함하는 컨텍스트입니다.

derivedKeyLengthInBytes
Int32

파생 키의 길이(바이트)입니다.

반환

Byte[]

파생 키를 포함하는 배열입니다.

예외

keynull입니다.

또는

labelnull입니다.

또는

contextnull입니다.

또는

hashAlgorithmName 입니다 null.

hashAlgorithm 에는 Name 비어 있는 가 있습니다.

derivedKeyLengthInBytes 가 음수이거나 파생될 수 있는 최대 바이트 수보다 큽니다.

hashAlgorithm 는 알려진 해시 알고리즘이나 지원되는 해시 알고리즘이 아닙니다.

label 또는 context 에는 UTF-8로 변환할 수 없는 텍스트가 포함되어 있습니다.

현재 플랫폼에는 지원되는 HMAC 구현이 없습니다.

설명

labelcontext 는 UTF-8 인코딩을 사용하여 바이트로 변환됩니다. 다른 인코딩의 경우 원하는 인코딩을 사용하여 변환을 수행하고 레이블 및 컨텍스트를 바이트 시퀀스로 허용하는 오버로드를 사용합니다.

적용 대상

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

지정된 길이의 키를 파생합니다.

public:
 static cli::array <System::Byte> ^ DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> label, ReadOnlySpan<System::Byte> context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> * int -> byte[]
Public Shared Function DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), derivedKeyLengthInBytes As Integer) As Byte()

매개 변수

key
ReadOnlySpan<Byte>

키 파생 키입니다.

hashAlgorithm
HashAlgorithmName

HMAC 알고리즘입니다.

label
ReadOnlySpan<Byte>

파생 키의 용도를 식별하는 레이블입니다.

context
ReadOnlySpan<Byte>

파생 키와 관련된 정보를 포함하는 컨텍스트입니다.

derivedKeyLengthInBytes
Int32

파생 키의 길이(바이트)입니다.

반환

Byte[]

파생 키를 포함하는 배열입니다.

예외

hashAlgorithmName 입니다 null.

hashAlgorithm 에는 Name 비어 있는 가 있습니다.

derivedKeyLengthInBytes 가 음수이거나 파생될 수 있는 최대 바이트 수보다 큽니다.

hashAlgorithm 는 알려진 해시 알고리즘이나 지원되는 해시 알고리즘이 아닙니다.

현재 플랫폼에는 지원되는 HMAC 구현이 없습니다.

적용 대상

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

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

버퍼를 파생 키로 채웁니다.

public:
 static void DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> label, ReadOnlySpan<System::Byte> context, Span<System::Byte> destination);
public static void DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> unit
Public Shared Sub DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), destination As Span(Of Byte))

매개 변수

key
ReadOnlySpan<Byte>

키 파생 키입니다.

hashAlgorithm
HashAlgorithmName

HMAC 알고리즘입니다.

label
ReadOnlySpan<Byte>

파생 키의 용도를 식별하는 레이블입니다.

context
ReadOnlySpan<Byte>

파생 키와 관련된 정보를 포함하는 컨텍스트입니다.

destination
Span<Byte>

파생 키를 받을 버퍼입니다.

예외

hashAlgorithmName 입니다 null.

hashAlgorithm 에는 Name 비어 있는 가 있습니다.

destination 는 파생될 수 있는 최대 바이트 수보다 큽니다.

hashAlgorithm 는 알려진 해시 알고리즘이나 지원되는 해시 알고리즘이 아닙니다.

현재 플랫폼에는 지원되는 HMAC 구현이 없습니다.

적용 대상

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

지정된 길이의 키를 파생합니다.

public:
 static cli::array <System::Byte> ^ DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<char> * ReadOnlySpan<char> * int -> byte[]
Public Shared Function DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Char), context As ReadOnlySpan(Of Char), derivedKeyLengthInBytes As Integer) As Byte()

매개 변수

key
ReadOnlySpan<Byte>

키 파생 키입니다.

hashAlgorithm
HashAlgorithmName

HMAC 알고리즘입니다.

label
ReadOnlySpan<Char>

파생 키의 용도를 식별하는 레이블입니다.

context
ReadOnlySpan<Char>

파생 키와 관련된 정보를 포함하는 컨텍스트입니다.

derivedKeyLengthInBytes
Int32

파생 키의 길이(바이트)입니다.

반환

Byte[]

파생 키를 포함하는 배열입니다.

예외

hashAlgorithmName 입니다 null.

hashAlgorithm 에는 Name 비어 있는 가 있습니다.

derivedKeyLengthInBytes 가 음수이거나 파생될 수 있는 최대 바이트 수보다 큽니다.

hashAlgorithm 는 알려진 해시 알고리즘이나 지원되는 해시 알고리즘이 아닙니다.

label 또는 context 에는 UTF-8로 변환할 수 없는 텍스트가 포함되어 있습니다.

현재 플랫폼에는 지원되는 HMAC 구현이 없습니다.

설명

labelcontext 는 UTF-8 인코딩을 사용하여 바이트로 변환됩니다. 다른 인코딩의 경우 원하는 인코딩을 사용하여 변환을 수행하고 레이블 및 컨텍스트를 바이트 시퀀스로 허용하는 오버로드를 사용합니다.

적용 대상

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Span<Byte>)

Source:
SP800108HmacCounterKdf.cs
Source:
SP800108HmacCounterKdf.cs

버퍼를 파생 키로 채웁니다.

public:
 static void DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<System::Byte> destination);
public static void DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<char> * ReadOnlySpan<char> * Span<byte> -> unit
Public Shared Sub DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Char), context As ReadOnlySpan(Of Char), destination As Span(Of Byte))

매개 변수

key
ReadOnlySpan<Byte>

키 파생 키입니다.

hashAlgorithm
HashAlgorithmName

HMAC 알고리즘입니다.

label
ReadOnlySpan<Char>

파생 키의 용도를 식별하는 레이블입니다.

context
ReadOnlySpan<Char>

파생 키와 관련된 정보를 포함하는 컨텍스트입니다.

destination
Span<Byte>

파생 키를 받을 버퍼입니다.

예외

hashAlgorithmName 입니다 null.

hashAlgorithm 에는 Name 비어 있는 가 있습니다.

destination 는 파생될 수 있는 최대 바이트 수보다 큽니다.

hashAlgorithm 는 알려진 해시 알고리즘이나 지원되는 해시 알고리즘이 아닙니다.

label 또는 context 에는 UTF-8로 변환할 수 없는 텍스트가 포함되어 있습니다.

현재 플랫폼에는 지원되는 HMAC 구현이 없습니다.

설명

labelcontext 는 UTF-8 인코딩을 사용하여 바이트로 변환됩니다. 다른 인코딩의 경우 원하는 인코딩을 사용하여 변환을 수행하고 레이블 및 컨텍스트를 바이트 시퀀스로 허용하는 오버로드를 사용합니다.

적용 대상