Język

HKDF.DeriveKey Metoda

Definicja

Wykonuje funkcje wyodrębniania i wyodrębniania klucza HKDF.

Przeciążenia

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

Wykonuje funkcje wyodrębniania i wyodrębniania klucza HKDF.

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

Wykonuje funkcje wyodrębniania i wyodrębniania klucza HKDF.

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

Źródło:
HKDF.cs
Źródło:
HKDF.cs
Źródło:
HKDF.cs
Źródło:
HKDF.cs
Źródło:
HKDF.cs

Wykonuje funkcje wyodrębniania i wyodrębniania klucza 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()

Parametry

hashAlgorithmName
HashAlgorithmName

Algorytm skrótu używany do operacji HMAC.

ikm
Byte[]

Materiał klucza wejściowego.

outputLength
Int32

Długość materiału kluczy wyjściowych.

salt
Byte[]

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

info
Byte[]

Opcjonalne informacje kontekstowe i specyficzne dla aplikacji.

Zwraca

Byte[]

Materiał kluczy wyjściowych.

Wyjątki

ikmto null.

outputLength wartość jest mniejsza niż 1.

Dotyczy

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

Źródło:
HKDF.cs
Źródło:
HKDF.cs
Źródło:
HKDF.cs
Źródło:
HKDF.cs
Źródło:
HKDF.cs

Wykonuje funkcje wyodrębniania i wyodrębniania klucza 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))

Parametry

hashAlgorithmName
HashAlgorithmName

Algorytm skrótu używany do operacji HMAC.

ikm
ReadOnlySpan<Byte>

Materiał klucza wejściowego.

output
Span<Byte>

Bufor wyjściowy reprezentujący materiał kluczy wyjściowych.

salt
ReadOnlySpan<Byte>

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

info
ReadOnlySpan<Byte>

Informacje dotyczące kontekstu i aplikacji (mogą być puste).

Wyjątki

output jest pusta lub jest większa niż maksymalna dozwolona długość.

Dotyczy