HKDF.DeriveKey 메서드

정의

오버로드

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

키 파생 HKDF 확장 및 추출 함수를 수행합니다.

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

키 파생 HKDF 확장 및 추출 함수를 수행합니다.

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

Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs

키 파생 HKDF 확장 및 추출 함수를 수행합니다.

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[]

선택적 솔트 값(비밀이 아닌 임의 값)입니다. 제공되지 않으면 지정된 해시 알고리즘의 출력과 동일한 길이의 바이트 배열로 기본 설정됩니다.

info
Byte[]

선택적 컨텍스트 및 애플리케이션 관련 정보입니다.

반품

Byte[]

출력 키 지정 자료입니다.

예외

ikm입니다 null.

outputLength 가 1보다 작습니다.

적용 대상

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

Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs

키 파생 HKDF 확장 및 추출 함수를 수행합니다.

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>

솔트 값(비밀이 아닌 임의 값)입니다.

info
ReadOnlySpan<Byte>

컨텍스트 및 애플리케이션 관련 정보(빈 범위일 수 있음)입니다.

예외

output 가 비어 있거나 허용되는 최대 길이보다 큰 경우

적용 대상