ddn.crypto.kdf.pbkdf2

PBKDF2 (Password-Based Key Derivation Function 2) Implementation (RFC 2898).

class PBKDF2

Types 1

classPBKDF2 : KDF

PBKDF2 Implementation.

Derives keys using a pseudo-random function (PRF), typically HMAC.

Fields
private MACFactory _prfFactory
private size_t _iterations
Methods
ubyte[] derive(const(ubyte)[] secret, const(ubyte)[] salt, size_t length)
ubyte[] derive(const(ubyte)[] secret, const(ubyte)[] salt, size_t length, KDFParams params)Derives a key using the given parameters.
private void f(const(ubyte)[] secret, const(ubyte)[] salt, size_t iterations, uint blockIndex, ubyte[] output)
Constructors
this(MACFactory prfFactory, size_t iterations)Constructs a PBKDF2 instance.