ddn.crypto.kdf.hkdf
HKDF (HMAC-based Extract-and-Expand Key Derivation Function) Implementation (RFC 5869).
class HKDF
Types 1
HKDF Implementation.
Provides mechanism to derive cryptographic keys from input keying material (IKM) and optional salt and info.
Fields
private HashFactory _hashFactoryMethods
ubyte[] derive(const(ubyte)[] secret, const(ubyte)[] salt, size_t length)Derives a key of the specified length using the standard KDF interface.ubyte[] derive(const(ubyte)[] secret, const(ubyte)[] salt, size_t length, KDFParams params)Derives a key using the given parameters.ubyte[] derive(const(ubyte)[] secret, const(ubyte)[] salt, const(ubyte)[] info, size_t length)Derives a key with context information.ubyte[] extract(const(ubyte)[] salt, const(ubyte)[] ikm)HKDF-Extract Step.ubyte[] expand(const(ubyte)[] prk, const(ubyte)[] info, size_t length)HKDF-Expand Step.Constructors
this(HashFactory hashFactory)Constructs a HKDF instance.