Lingua

HKDF Classe

Definizione

RFC5869 derivazione chiave basata su HMAC (HKDF)

public ref class HKDF abstract sealed
public static class HKDF
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static class HKDF
type HKDF = class
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type HKDF = class
Public Class HKDF
Ereditarietà
HKDF
Attributi

Commenti

Nelle situazioni in cui il materiale della chiave di input è già una stringa di bit casuale uniforme, lo standard HKDF consente di ignorare la fase extract e la chiave master deve essere usata direttamente come chiave pseudorandoma. Per altre informazioni, vedere RFC5869 .

In Windows in .NET 11 e versioni successive, DeriveKey genera CryptographicException un'eccezione se il materiale di keying di input supera i 2.048 byte. Expand genera la stessa eccezione se la chiave pseudorandoma supera 2.048 byte.

Metodi

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.

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

Esegue la funzione HKDF-Expand Vedere la sezione 2.3 di RFC5869.

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

Esegue la funzione HKDF-Expand. Vedere la sezione 2.3 di RFC5869.

Extract(HashAlgorithmName, Byte[], Byte[])

Esegue la funzione HKDF-Extract. Vedere la sezione 2.2 di RFC5869.

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

Esegue la funzione HKDF-Extract. Vedere la sezione 2.2 di RFC5869.

Si applica a