Sprache

HKDF.Expand Methode

Definition

Führt die HKDF-Expand-Funktion aus. Siehe Abschnitt 2.3 von RFC5869.

Überlädt

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

Führt die funktion HKDF-Expand Siehe Abschnitt 2.3 von RFC5869.

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

Führt die HKDF-Expand-Funktion aus. Siehe Abschnitt 2.3 von RFC5869.

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

Quelle:
HKDF.cs
Quelle:
HKDF.cs
Quelle:
HKDF.cs
Quelle:
HKDF.cs
Quelle:
HKDF.cs

Führt die funktion HKDF-Expand Siehe Abschnitt 2.3 von 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()

Parameter

hashAlgorithmName
HashAlgorithmName

Der für HMAC-Vorgänge verwendete Hashalgorithmus.

prk
Byte[]

Der pseudorandom-Schlüssel, der mindestens so lange ist, wie das Ausgabebytearray des angegebenen Hashalgorithmus (in der Regel die Ausgabe aus dem Extraktschritt).

outputLength
Int32

Die Länge des Ausgabetastenmaterials.

info
Byte[]

Die optionalen kontext- und anwendungsspezifischen Informationen.

Gibt zurück

Byte[]

Das Ausgabetastenmaterial.

Ausnahmen

prkist null.

outputLength ist kleiner als 1.

Bei Windows in .NET 11 und höher prk überschreitet 2.048 Bytes.

Gilt für:

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

Quelle:
HKDF.cs
Quelle:
HKDF.cs
Quelle:
HKDF.cs
Quelle:
HKDF.cs
Quelle:
HKDF.cs

Führt die HKDF-Expand-Funktion aus. Siehe Abschnitt 2.3 von 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))

Parameter

hashAlgorithmName
HashAlgorithmName

Der für HMAC-Vorgänge verwendete Hashalgorithmus.

prk
ReadOnlySpan<Byte>

Der pseudorandom-Schlüssel, der mindestens so lange ist, wie das Ausgabebytearray des angegebenen Hashalgorithmus (in der Regel die Ausgabe aus dem Extraktschritt).

output
Span<Byte>

Der Zielpuffer, der das Ausgabeschlüsselmaterial empfängt.

info
ReadOnlySpan<Byte>

Kontext- und Anwendungsspezifische Informationen (kann eine leere Spanne sein).

Ausnahmen

output ist leer oder größer als die maximal zulässige Länge.

Bei Windows in .NET 11 und höher prk überschreitet 2.048 Bytes.

Gilt für: