HKDF.DeriveKey Metodo

Definizione

Overload

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

Esegue le funzioni di derivazione della chiave HKDF con espansione ed estrazione.

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

Esegue le funzioni di derivazione della chiave HKDF con espansione ed estrazione.

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

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

Esegue le funzioni di derivazione della chiave HKDF con espansione ed estrazione.

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 per le chiavi di input.

outputLength
Int32

Lunghezza del materiale per le chiavi di output.

salt
Byte[]

Valore di salt facoltativo (valore casuale non segreto). Se non specificato, il valore predefinito è una matrice di byte della stessa lunghezza dell'output dell'algoritmo hash specificato.

info
Byte[]

Informazioni facoltative specifiche del contesto e dell'applicazione.

Restituisce

Byte[]

Materiale per le chiavi di output.

Eccezioni

ikm è null.

outputLength è minore di 1.

Si applica a

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

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

Esegue le funzioni di derivazione della chiave HKDF con espansione ed estrazione.

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 per le chiavi di input.

output
Span<Byte>

Buffer di output che rappresenta il materiale per le chiavi di output.

salt
ReadOnlySpan<Byte>

Valore di salt (valore casuale non segreto).

info
ReadOnlySpan<Byte>

Informazioni specifiche del contesto e dell'applicazione (possono essere un intervallo vuoto).

Eccezioni

ikm è vuoto o è maggiore della lunghezza massima consentita.

Si applica a