Udostępnij za pośrednictwem


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

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

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 do operacji HMAC.

prk
Byte[]

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

outputLength
Int32

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

info
Byte[]

Opcjonalne informacje kontekstowe i specyficzne dla aplikacji.

Zwraca

Byte[]

Materiał klucza wyjściowego.

Wyjątki

prkto null.

outputLength wartość jest mniejsza niż 1.

Dotyczy

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

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

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 do operacji HMAC.

prk
ReadOnlySpan<Byte>

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

output
Span<Byte>

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

info
ReadOnlySpan<Byte>

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

Wyjątki

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

Dotyczy