BlockDev.CryptoLUKSExtra

Fields

Name

Type

Access

Description

data_alignment

int

r/w

data alignment in sectors, 0 for default/auto detection

data_device

str

r/w

detached encrypted data device or None

integrity

str

r/w

integrity algorithm (e.g. “hmac-sha256”) or None for no integrity support Note: this field is valid only for LUKS 2

label

str

r/w

LUKS header label or None Note: this field is valid only for LUKS 2

pbkdf

BlockDev.CryptoLUKSPBKDF

r/w

key derivation function specification or None for default Note: this field is valid only for LUKS 2

sector_size

int

r/w

encryption sector size, 0 for default (512) Note: this field is valid only for LUKS 2

subsystem

str

r/w

LUKS header subsystem or None Note: this field is valid only for LUKS 2

Methods

class

new (data_alignment, data_device, integrity, sector_size, label, subsystem, pbkdf)

Details

class BlockDev.CryptoLUKSExtra
classmethod new(data_alignment, data_device, integrity, sector_size, label, subsystem, pbkdf)
Parameters:
  • data_alignment (int) – data alignment in sectors, 0 for default/auto detection

  • data_device (str or None) – detached encrypted data device or None

  • integrity (str or None) – integrity algorithm (e.g. “hmac-sha256”) or None for no integrity support

  • sector_size (int) – encryption sector size, 0 for default (512)

  • label (str or None) – LUKS header label or None

  • subsystem (str or None) – LUKS header subsystem or None

  • pbkdf (BlockDev.CryptoLUKSPBKDF or None) – key derivation function specification or None for default

Returns:

a new LUKS extra argument

Return type:

BlockDev.CryptoLUKSExtra