HKDF.DeriveKey Metodo

Definizione

Overload

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

Esegue le funzioni HKDF Expand e Extract della derivazione della chiave.

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

Esegue le funzioni HKDF Expand e Extract della derivazione della chiave.

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

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

Esegue le funzioni HKDF Expand e Extract della derivazione della chiave.

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()

Parametri

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usato per le operazioni HMAC.

ikm
Byte[]

Materiale di keying di input.

outputLength
Int32

Lunghezza del materiale di chiave di output.

salt
Byte[]

Valore salt facoltativo (valore casuale non segreto). Se non specificato, per impostazione predefinita viene restituita una matrice di byte con la stessa lunghezza dell'output dell'algoritmo hash specificato.

info
Byte[]

Informazioni specifiche sul contesto facoltativo e sull'applicazione.

Valori restituiti

Byte[]

Materiale di keying dell'output.

Eccezioni

ikmè null.

outputLength è minore di 1.

Si applica a

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

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

Esegue le funzioni HKDF Expand e Extract della derivazione della chiave.

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))

Parametri

hashAlgorithmName
HashAlgorithmName

Algoritmo hash usato per le operazioni HMAC.

ikm
ReadOnlySpan<Byte>

Materiale di keying di input.

output
Span<Byte>

Buffer di output che rappresenta il materiale di keying di output.

salt
ReadOnlySpan<Byte>

Valore salt (valore casuale non segreto).

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