HKDF Class

Definition

RFC5869 HMAC-based Extract-and-Expand Key Derivation (HKDF)

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

Remarks

In situations where the input key material is already a uniformly random bit string, the HKDF standard allows the Extract phase to be skipped and the master key to be used directly as the pseudorandom key. See RFC5869 for more information.

Methods

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

Performs the key derivation HKDF Expand and Extract functions.

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

Performs the key derivation HKDF Expand and Extract functions.

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

Performs the HKDF-Expand function See section 2.3 of RFC5869.

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

Performs the HKDF-Expand function. See section 2.3 of RFC5869.

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

Performs the HKDF-Extract function. See section 2.2 of RFC5869.

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

Performs the HKDF-Extract function. See section 2.2 of RFC5869.

Applies to