HKDF.Extract 메서드

정의

오버로드

Extract(HashAlgorithmName, Byte[], Byte[])

HKDF 추출 함수를 수행합니다. RFC5869의 섹션 2.2를 참조하세요.

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

HKDF 추출 함수를 수행합니다. RFC5869의 섹션 2.2를 참조하세요.

Extract(HashAlgorithmName, Byte[], Byte[])

HKDF 추출 함수를 수행합니다. RFC5869의 섹션 2.2를 참조하세요.

public static byte[] Extract (System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, byte[] ikm, byte[]? salt = default);
static member Extract : System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] -> byte[]
Public Shared Function Extract (hashAlgorithmName As HashAlgorithmName, ikm As Byte(), Optional salt As Byte() = Nothing) As Byte()

매개 변수

hashAlgorithmName
HashAlgorithmName

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

ikm
Byte[]

입력 키 관련 자료입니다.

salt
Byte[]

선택적인 솔트 값(비밀이 아닌 임의의 값)입니다. 지정하지 않으면 기본값은 지정된 해시 알고리즘의 출력과 같은 길이의 바이트 배열입니다.

반환

Byte[]

의사 난수 키(prk)입니다.

적용 대상

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

HKDF 추출 함수를 수행합니다. RFC5869의 섹션 2.2를 참조하세요.

public:
 static int Extract(System::Security::Cryptography::HashAlgorithmName hashAlgorithmName, ReadOnlySpan<System::Byte> ikm, ReadOnlySpan<System::Byte> salt, Span<System::Byte> prk);
public static int Extract (System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk);
static member Extract : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> int
Public Shared Function Extract (hashAlgorithmName As HashAlgorithmName, ikm As ReadOnlySpan(Of Byte), salt As ReadOnlySpan(Of Byte), prk As Span(Of Byte)) As Integer

매개 변수

hashAlgorithmName
HashAlgorithmName

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

ikm
ReadOnlySpan<Byte>

입력 키 관련 자료입니다.

salt
ReadOnlySpan<Byte>

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

prk
Span<Byte>

의사 난수 키(prk)를 받을 대상 버퍼입니다.

반환

Int32

prk 버퍼에 쓴 바이트 수입니다.

적용 대상