cryptsetup API
Public cryptsetup API
Loading...
Searching...
No Matches
Data Fields
crypt_params_reencrypt Struct Reference

#include <libcryptsetup.h>

Data Fields

crypt_reencrypt_mode_info mode
 
crypt_reencrypt_direction_info direction
 
const char * resilience
 
const char * hash
 
uint64_t data_shift
 
uint64_t max_hotzone_size
 
uint64_t device_size
 
const struct crypt_params_luks2luks2
 
uint32_t flags
 

Detailed Description

LUKS2 reencryption options.

Field Documentation

◆ data_shift

uint64_t crypt_params_reencrypt::data_shift

Used in "datashift" mode (and subvariants), must be non-zero, immutable after first init.

◆ device_size

uint64_t crypt_params_reencrypt::device_size

Reencrypt only initial part of the data device.

◆ direction

crypt_reencrypt_direction_info crypt_params_reencrypt::direction

Reencryption direction, immutable after first init.

◆ flags

uint32_t crypt_params_reencrypt::flags

Reencryption flags.

◆ hash

const char* crypt_params_reencrypt::hash

Used hash for "checksum" resilience type, ignored otherwise.

◆ luks2

const struct crypt_params_luks2* crypt_params_reencrypt::luks2

LUKS2 parameters for the final reencryption volume.

◆ max_hotzone_size

uint64_t crypt_params_reencrypt::max_hotzone_size

Maximum hotzone size (may be lowered by library). For "datashift-" subvariants it is used to set size of moved segment (decryption only).

◆ mode

crypt_reencrypt_mode_info crypt_params_reencrypt::mode

Reencryption mode, immutable after first init.

◆ resilience

const char* crypt_params_reencrypt::resilience

Resilience mode: "none", "checksum", "journal", "datashift", "datashift-checksum" or "datashift-journal". "datashift" mode is immutable, "datashift-" subvariant can be only changed to other "datashift-" subvariant


The documentation for this struct was generated from the following file: