HKDF.Expand 메서드

정의

오버로드

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

HKDF 확장 함수를 수행합니다. RFC5869의 섹션 2.3을 참조하세요.

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

HKDF 확장 함수를 수행합니다. RFC5869의 섹션 2.3을 참조하세요.

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

HKDF 확장 함수를 수행합니다. RFC5869의 섹션 2.3을 참조하세요.

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

매개 변수

hashAlgorithmName
HashAlgorithmName

HMAC 작업에 사용되는 해시 알고리즘입니다.

prk
Byte[]

지정된 해시 알고리즘의 출력 바이트 배열(일반적으로 추출 단계의 출력)만큼의 의사 정의 키입니다.

outputLength
Int32

출력 키 관련 자료의 길이입니다.

info
Byte[]

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

반환

Byte[]

출력 키 관련 자료입니다.

예외

prknull입니다.

outputLength 가 1보다 작습니다.

적용 대상

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

HKDF 확장 함수를 수행합니다. RFC5869의 섹션 2.3을 참조하세요.

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

매개 변수

hashAlgorithmName
HashAlgorithmName

HMAC 작업에 사용되는 해시 알고리즘입니다.

prk
ReadOnlySpan<Byte>

지정된 해시 알고리즘의 출력 바이트 배열(일반적으로 추출 단계의 출력)만큼의 의사 정의 키입니다.

output
Span<Byte>

출력 키 관련 자료를 받을 대상 버퍼입니다.

info
ReadOnlySpan<Byte>

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

예외

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

적용 대상