<PackageReference Include="Microsoft.Bcl.Cryptography" Version="10.0.9" />

System.Security.Cryptography.SP800108HmacCounterKdf

public sealed class SP800108HmacCounterKdf : IDisposable
NIST SP 800-108 HMAC CTR Key-Based Key Derivation (KBKDF)
public SP800108HmacCounterKdf(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm)

Initializes a new instance of SP800108HmacCounterKdf using a specified key and HMAC algorithm.

public SP800108HmacCounterKdf(byte[] key, HashAlgorithmName hashAlgorithm)

Initializes a new instance of SP800108HmacCounterKdf using a specified key and HMAC algorithm.

public static byte[] DeriveBytes(byte[] key, HashAlgorithmName hashAlgorithm, byte[] label, byte[] context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public static byte[] DeriveBytes(byte[] key, HashAlgorithmName hashAlgorithm, string label, string context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)

Fills a buffer with a derived key.

public static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)

Fills a buffer with a derived key.

public byte[] DeriveKey(byte[] label, byte[] context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public byte[] DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public void DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)

Fills a buffer with a derived key.

public byte[] DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public void DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)

Fills a buffer with a derived key.

public byte[] DeriveKey(string label, string context, int derivedKeyLengthInBytes)

Derives a key of a specified length.

public void Dispose()

Releases all resources used by the current instance of SP800108HmacCounterKdf.