Idioma

HKDF.Expand Método

Definição

Executa a função HKDF-Expand. Consulte a seção 2.3 do RFC5869.

Sobrecargas

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

Executa a função HKDF-Expand Consulte a seção 2.3 de RFC5869.

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

Executa a função HKDF-Expand. Consulte a seção 2.3 do RFC5869.

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

Origem:
HKDF.cs
Origem:
HKDF.cs
Origem:
HKDF.cs
Origem:
HKDF.cs
Origem:
HKDF.cs

Executa a função HKDF-Expand Consulte a seção 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

O algoritmo de hash usado para operações HMAC.

prk
Byte[]

A chave pseudorandom que é, pelo menos, desde que a matriz de bytes de saída do algoritmo de hash especificado (geralmente a saída da etapa Extrair).

outputLength
Int32

O comprimento do material de chave de saída.

info
Byte[]

O contexto opcional e as informações específicas do aplicativo.

Retornos

Byte[]

O material de chave de saída.

Exceções

prké null.

outputLength é menor que 1.

Em Windows em .NET 11 e posterior, prk excede 2.048 bytes.

Aplica-se a

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

Origem:
HKDF.cs
Origem:
HKDF.cs
Origem:
HKDF.cs
Origem:
HKDF.cs
Origem:
HKDF.cs

Executa a função HKDF-Expand. Consulte a seção 2.3 do 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

O algoritmo de hash usado para operações HMAC.

prk
ReadOnlySpan<Byte>

A chave pseudorandom que é, pelo menos, desde que a matriz de bytes de saída do algoritmo de hash especificado (geralmente a saída da etapa Extrair).

output
Span<Byte>

O buffer de destino para receber o material de chave de saída.

info
ReadOnlySpan<Byte>

As informações específicas do contexto e do aplicativo (podem ser um intervalo vazio).

Exceções

output está vazio ou é maior que o tamanho máximo permitido.

Em Windows em .NET 11 e posterior, prk excede 2.048 bytes.

Aplica-se a