HKDF.Expand Metodo

Definizione

Overload

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

Esegue la funzione HKDF-Expand Vedere la sezione 2.3 di RFC5869.

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

Esegue la funzione HKDF-Expand. Vedere la sezione 2.3 di RFC5869.

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

Origine:
HKDF.cs
Origine:
HKDF.cs
Origine:
HKDF.cs
Origine:
HKDF.cs
Origine:
HKDF.cs

Esegue la funzione HKDF-Expand Vedere la sezione 2.3 di 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()

Parametri

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usato per le operazioni HMAC.

prk
Byte[]

Chiave pseudorandoma che è almeno a condizione che la matrice di byte di output dell'algoritmo hash specificato (in genere l'output del passaggio Estrai).

outputLength
Int32

Lunghezza del materiale di chiave di output.

info
Byte[]

Informazioni specifiche sul contesto facoltativo e sull'applicazione.

Valori restituiti

Byte[]

Materiale di keying dell'output.

Eccezioni

prkè null.

outputLength è minore di 1.

Si applica a

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

Origine:
HKDF.cs
Origine:
HKDF.cs
Origine:
HKDF.cs
Origine:
HKDF.cs
Origine:
HKDF.cs

Esegue la funzione HKDF-Expand. Vedere la sezione 2.3 di 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))

Parametri

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usato per le operazioni HMAC.

prk
ReadOnlySpan<Byte>

Chiave pseudorandoma che è almeno a condizione che la matrice di byte di output dell'algoritmo hash specificato (in genere l'output del passaggio Estrai).

output
Span<Byte>

Buffer di destinazione per ricevere il materiale di chiave di output.

info
ReadOnlySpan<Byte>

Informazioni specifiche sul contesto e sull'applicazione (può essere un intervallo vuoto).

Eccezioni

output è vuoto o è maggiore della lunghezza massima consentita.

Si applica a