HKDF.DeriveKey Método

Definición

Realiza las funciones HKDF Expand y Extract de derivación de claves.

Sobrecargas

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

Realiza las funciones HKDF Expand y Extract de derivación de claves.

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

Realiza las funciones HKDF Expand y Extract de derivación de claves.

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

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

Realiza las funciones HKDF Expand y Extract de derivación de claves.

public static byte[] DeriveKey(System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, byte[] ikm, int outputLength, byte[]? salt = default, byte[]? info = default);
static member DeriveKey : System.Security.Cryptography.HashAlgorithmName * byte[] * int * byte[] * byte[] -> byte[]
Public Shared Function DeriveKey (hashAlgorithmName As HashAlgorithmName, ikm As Byte(), outputLength As Integer, Optional salt As Byte() = Nothing, Optional info As Byte() = Nothing) As Byte()

Parámetros

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usado para las operaciones HMAC.

ikm
Byte[]

Material de clave de entrada.

outputLength
Int32

Longitud del material de clave de salida.

salt
Byte[]

Valor de sal opcional (un valor aleatorio no secreto). Si no se proporciona, el valor predeterminado es una matriz de bytes de la misma longitud que la salida del algoritmo hash especificado.

info
Byte[]

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

Devoluciones

Byte[]

Material de clave de salida.

Excepciones

ikmes null.

outputLength es menor que 1.

Se aplica a

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

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

Realiza las funciones HKDF Expand y Extract de derivación de claves.

public:
 static void DeriveKey(System::Security::Cryptography::HashAlgorithmName hashAlgorithmName, ReadOnlySpan<System::Byte> ikm, Span<System::Byte> output, ReadOnlySpan<System::Byte> salt, ReadOnlySpan<System::Byte> info);
public static void DeriveKey(System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, Span<byte> output, ReadOnlySpan<byte> salt, ReadOnlySpan<byte> info);
static member DeriveKey : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * Span<byte> * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> unit
Public Shared Sub DeriveKey (hashAlgorithmName As HashAlgorithmName, ikm As ReadOnlySpan(Of Byte), output As Span(Of Byte), salt As ReadOnlySpan(Of Byte), info As ReadOnlySpan(Of Byte))

Parámetros

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usado para las operaciones HMAC.

ikm
ReadOnlySpan<Byte>

Material de clave de entrada.

output
Span<Byte>

Búfer de salida que representa el material de clave de salida.

salt
ReadOnlySpan<Byte>

Valor de sal (un valor aleatorio no secreto).

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.

Se aplica a