Lenguaje

HKDF.Expand Método

Definición

Realiza la función HKDF-Expand. Consulte la sección 2.3 de RFC5869.

Sobrecargas

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

Realiza la función HKDF-Expand Ver sección 2.3 de RFC5869.

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

Realiza la función HKDF-Expand. Consulte la sección 2.3 de RFC5869.

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

Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs

Realiza la función HKDF-Expand Ver sección 2.3 de 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()

Parámetros

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usado para las operaciones HMAC.

prk
Byte[]

Clave pseudoaleatoria que es al menos siempre que la matriz de bytes de salida del algoritmo hash especificado (normalmente la salida del paso Extraer).

outputLength
Int32

Longitud del material de clave de salida.

info
Byte[]

El contexto opcional y la información específica de la aplicación.

Devoluciones

Byte[]

Material de clave de salida.

Excepciones

prkes null.

outputLength es menor que 1.

En Windows en .NET 11 y versiones posteriores, prk supera los 2048 bytes.

Se aplica a

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

Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs
Source:
HKDF.cs

Realiza la función HKDF-Expand. Consulte la sección 2.3 de 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))

Parámetros

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usado para las operaciones HMAC.

prk
ReadOnlySpan<Byte>

Clave pseudoaleatoria que es al menos siempre que la matriz de bytes de salida del algoritmo hash especificado (normalmente la salida del paso Extraer).

output
Span<Byte>

Búfer de destino para recibir el material de clave de salida.

info
ReadOnlySpan<Byte>

El contexto y la información específica de la aplicación (puede ser un intervalo vacío).

Excepciones

output está vacío o es mayor que la longitud máxima permitida.

En Windows en .NET 11 y versiones posteriores, prk supera los 2048 bytes.

Se aplica a