HKDF.Expand Metoda

Definicja

Przeciążenia

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

Wykonuje funkcję HKDF-Expand Zobacz sekcję 2.3 RFC5869.

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

Wykonuje funkcję HKDF-Expand. Zobacz sekcję 2.3 RFC5869.

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

Wykonuje funkcję HKDF-Expand Zobacz sekcję 2.3 RFC5869.

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

Parametry

hashAlgorithmName
HashAlgorithmName

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

prk
Byte[]

Klucz pseudorandom, który jest co najmniej tak długo, jak tablica bajtów wyjściowych określonego algorytmu skrótu (zazwyczaj dane wyjściowe z kroku Wyodrębnij).

outputLength
Int32

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

info
Byte[]

Opcjonalne informacje kontekstowe i specyficzne dla aplikacji.

Zwraca

Byte[]

Materiał kluczy wyjściowych.

Wyjątki

prkto null.

outputLength wartość jest mniejsza niż 1.

Dotyczy

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

Wykonuje funkcję HKDF-Expand. Zobacz sekcję 2.3 RFC5869.

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

Parametry

hashAlgorithmName
HashAlgorithmName

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

prk
ReadOnlySpan<Byte>

Klucz pseudorandom, który jest co najmniej tak długo, jak tablica bajtów wyjściowych określonego algorytmu skrótu (zazwyczaj dane wyjściowe z kroku Wyodrębnij).

output
Span<Byte>

Bufor docelowy do odbierania materiału kluczy wyjściowych.

info
ReadOnlySpan<Byte>

Informacje kontekstowe i specyficzne dla aplikacji (mogą być puste).

Wyjątki

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

Dotyczy