Argon2

data class Argon2(val variant: KdfParameters.Argon2.Variant, val salt: ByteString, val parallelism: UInt, val memory: ULong, val iterations: ULong, val version: UInt, val secretKey: ByteString?, val associatedData: ByteString?) : KdfParameters

Uses Argon2 as key-derivation function.

Constructors

Link copied to clipboard
constructor(variant: KdfParameters.Argon2.Variant, salt: ByteString, parallelism: UInt, memory: ULong, iterations: ULong, version: UInt, secretKey: ByteString?, associatedData: ByteString?)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
val associatedData: ByteString?

Not used in KDBX format.

Link copied to clipboard

The number of passes over the memory.

Link copied to clipboard

The amount of memory used by the algorithm (in bytes).

Link copied to clipboard

The number of threads (or lanes) used by the algorithm.

Link copied to clipboard
val salt: ByteString

ByteString of salt to be used by the algorithm.

Link copied to clipboard
val secretKey: ByteString?

Not used in KDBX format.

Link copied to clipboard

of Argon2 which is being used.

Link copied to clipboard

Which algorithm version to use (0x10 or 0x13).