Udostępnij za pośrednictwem


HKDF.Extract Metoda

Definicja

Przeciążenia

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

Wykonuje funkcję HKDF-Extract. Zobacz sekcję 2.2 RFC5869.

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

Wykonuje funkcję HKDF-Extract. Zobacz sekcję 2.2 RFC5869.

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

Wykonuje funkcję HKDF-Extract. Zobacz sekcję 2.2 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()

Parametry

hashAlgorithmName
HashAlgorithmName

Algorytm skrótu używany na potrzeby operacji HMAC.

ikm
Byte[]

Materiał klucza wejściowego.

salt
Byte[]

Opcjonalna wartość soli (nieskryta wartość losowa). Jeśli nie zostanie podana wartość domyślna, zostanie ustawiona na tablicę bajtów o tej samej długości co dane wyjściowe określonego algorytmu skrótu.

Zwraca

Byte[]

Klucz pseudorandom (prk).

Dotyczy

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

Wykonuje funkcję HKDF-Extract. Zobacz sekcję 2.2 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

Parametry

hashAlgorithmName
HashAlgorithmName

Algorytm skrótu używany na potrzeby operacji HMAC.

ikm
ReadOnlySpan<Byte>

Materiał klucza wejściowego.

salt
ReadOnlySpan<Byte>

Wartość soli (nieskryta wartość losowa).

prk
Span<Byte>

Bufor docelowy do odbierania klucza pseudorandom (prk).

Zwraca

Int32

Liczba bajtów zapisanych w buforze prk .

Dotyczy