System.Security.Cryptography.SP800108HmacCounterKdf
NIST SP 800-108 HMAC CTR Key-Based Key Derivation (KBKDF)
Initializes a new instance of SP800108HmacCounterKdf using a specified key and HMAC algorithm.
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.
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.
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.
Fills a buffer with a derived key.
Derives a key of a specified length.
Releases all resources used by the current instance of SP800108HmacCounterKdf.