Class Extraction
- Namespace
- Kdf108
- Assembly
- Kdf108.dll
The randomness-extraction step of SP 800-56C Rev. 2 two-step key derivation (ยง5.1).
public sealed class Extraction
- Inheritance
-
Extraction
- Inherited Members
Properties
ExpansionPrf
The PRF the expansion step must use with the extracted key: HMAC with the same hash after HMAC extraction, or AES-128-CMAC after AES-CMAC extraction (the extracted key is 128 bits).
public Prf ExpansionPrf { get; }
Property Value
Mac
The extraction MAC.
public Prf Mac { get; }
Property Value
Methods
AesCmac(int, ReadOnlySpan<byte>)
AES-CMAC extraction. The salt is the AES key: exactly keyBits long, or empty for all zeros.
public static Extraction AesCmac(int keyBits, ReadOnlySpan<byte> salt = default)
Parameters
keyBitsintsaltReadOnlySpan<byte>
Returns
Hmac(NistHashAlgorithm, ReadOnlySpan<byte>)
HMAC-hash extraction. An empty salt means the default: a block of zero bytes.
public static Extraction Hmac(NistHashAlgorithm hash, ReadOnlySpan<byte> salt = default)
Parameters
hashNistHashAlgorithmsaltReadOnlySpan<byte>
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.