KeyDerivationCore.derive

Derive a key using the given number of iterations, store it in the given buffer. The length of the buffer must be the same as the expected length of the generated key.

class KeyDerivationCore(KDF algorithm, Hasher hasher)
ubyte[]
derive
(,
ubyte[] key_buf
)

Parameters

iterations ulong

The number of hashing iterations

key_buf ubyte[]

The buffer to store the key in

Return Value

Type: ubyte[]

A slice to the key buffer

Throws

GcryptException on internal Gcrypt error

Meta