BlockDev.CryptoLUKSPBKDF

Fields

Name

Type

Access

Description

hash

str

r/w

hash for LUKS header or None

iterations

int

r/w

requested iterations or 0 for default (benchmark)

max_memory_kb

int

r/w

requested memory cost (in KiB) or 0 for default (benchmark)

parallel_threads

int

r/w

requested parallel cost (threads) or 0 for default (benchmark)

time_ms

int

r/w

requested time cost or 0 for default (benchmark)

type

str

r/w

PBKDF algorithm

Methods

class

new (type, hash, max_memory_kb, iterations, time_ms, parallel_threads)

Details

class BlockDev.CryptoLUKSPBKDF
classmethod new(type, hash, max_memory_kb, iterations, time_ms, parallel_threads)
Parameters:
  • type (str or None) – PBKDF algorithm

  • hash (str or None) – hash for LUKS header or None for default

  • max_memory_kb (int) – requested memory cost (in KiB) or 0 for default (benchmark)

  • iterations (int) – requested iterations or 0 for default (benchmark)

  • time_ms (int) – requested time cost or 0 for default (benchmark)

  • parallel_threads (int) – requested parallel cost (threads) or 0 for default (benchmark)

Returns:

a new pbkdf argument

Return type:

BlockDev.CryptoLUKSPBKDF