Szerkesztés

Megosztás a következőn keresztül:


HKDF.Extract Method

Definition

Overloads

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

Performs the HKDF-Extract function. See section 2.2 of RFC5869.

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

Performs the HKDF-Extract function. See section 2.2 of RFC5869.

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

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

Performs the HKDF-Extract function. See section 2.2 of RFC5869.

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()

Parameters

hashAlgorithmName
HashAlgorithmName

The hash algorithm used for HMAC operations.

ikm
Byte[]

The input keying material.

salt
Byte[]

The optional salt value (a non-secret random value). If not provided it defaults to a byte array of the same length as the output of the specified hash algorithm.

Returns

Byte[]

The pseudorandom key (prk).

Applies to

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

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

Performs the HKDF-Extract function. See section 2.2 of RFC5869.

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

Parameters

hashAlgorithmName
HashAlgorithmName

The hash algorithm used for HMAC operations.

ikm
ReadOnlySpan<Byte>

The input keying material.

salt
ReadOnlySpan<Byte>

The salt value (a non-secret random value).

prk
Span<Byte>

The destination buffer to receive the pseudorandom key (prk).

Returns

The number of bytes written to the prk buffer.

Applies to