cryptsetup API
Public cryptsetup API
|
Macros | |
#define | CRYPT_REQUIREMENT_OFFLINE_REENCRYPT (UINT32_C(1) << 0) |
#define | CRYPT_REQUIREMENT_ONLINE_REENCRYPT (UINT32_C(1) << 1) |
#define | CRYPT_REQUIREMENT_OPAL (UINT32_C(1) << 2) |
#define | CRYPT_REQUIREMENT_UNKNOWN (UINT32_C(1) << 31) |
Enumerations | |
enum | crypt_flags_type { CRYPT_FLAGS_ACTIVATION , CRYPT_FLAGS_REQUIREMENTS } |
Functions | |
int | crypt_persistent_flags_set (struct crypt_device *cd, crypt_flags_type type, uint32_t flags) |
int | crypt_persistent_flags_get (struct crypt_device *cd, crypt_flags_type type, uint32_t *flags) |
#define CRYPT_REQUIREMENT_OFFLINE_REENCRYPT (UINT32_C(1) << 0) |
LUKS2 header requirements Unfinished offline reencryption
#define CRYPT_REQUIREMENT_ONLINE_REENCRYPT (UINT32_C(1) << 1) |
Online reencryption in-progress
#define CRYPT_REQUIREMENT_OPAL (UINT32_C(1) << 2) |
Device configured with OPAL support
#define CRYPT_REQUIREMENT_UNKNOWN (UINT32_C(1) << 31) |
unknown requirement in header (output only)
enum crypt_flags_type |
int crypt_persistent_flags_get | ( | struct crypt_device * | cd, |
crypt_flags_type | type, | ||
uint32_t * | flags | ||
) |
Get persistent flags stored in header.
cd | crypt device handle (can be NULL) |
type | flags type to retrieve (CRYPT_FLAGS_ACTIVATION or CRYPT_FLAGS_REQUIREMENTS) |
flags | reference to output variable |
int crypt_persistent_flags_set | ( | struct crypt_device * | cd, |
crypt_flags_type | type, | ||
uint32_t | flags | ||
) |
Set persistent flags.
cd | crypt device handle (can be NULL) |
type | type to set (CRYPT_FLAGS_ACTIVATION or CRYPT_FLAGS_REQUIREMENTS) |
flags | flags to set |