ddn.crypto.kdf.argon2

Argon2id Key Derivation Function (RFC 9106).

class Argon2id

Types 1

classArgon2id : KDF

Argon2id KDF Implementation.

Uses the Argon2id variant of the Argon2 password hashing scheme. Suitable for password hashing and key derivation.

Fields
private uint _t
private uint _m
private uint _p
private int _version
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.
Constructors
this(uint t, uint m, uint p, int version_ = 0x13)Constructs an Argon2id KDF with the given parameters.