|
cryptsetup API
Public cryptsetup API
|
Enumerations | |
| enum | crypt_status_info { CRYPT_INVALID , CRYPT_INACTIVE , CRYPT_ACTIVE , CRYPT_BUSY } |
Functions | |
| crypt_status_info | crypt_status (struct crypt_device *cd, const char *name) |
| int | crypt_dump (struct crypt_device *cd) |
| int | crypt_dump_json (struct crypt_device *cd, const char **json, uint32_t flags) |
| const char * | crypt_get_cipher (struct crypt_device *cd) |
| const char * | crypt_get_cipher_mode (struct crypt_device *cd) |
| const char * | crypt_get_uuid (struct crypt_device *cd) |
| const char * | crypt_get_device_name (struct crypt_device *cd) |
| const char * | crypt_get_metadata_device_name (struct crypt_device *cd) |
| uint64_t | crypt_get_data_offset (struct crypt_device *cd) |
| uint64_t | crypt_get_iv_offset (struct crypt_device *cd) |
| int | crypt_get_volume_key_size (struct crypt_device *cd) |
| int | crypt_get_old_volume_key_size (struct crypt_device *cd) |
| int | crypt_get_sector_size (struct crypt_device *cd) |
| int | crypt_header_is_detached (struct crypt_device *cd) |
| int | crypt_get_verity_info (struct crypt_device *cd, struct crypt_params_verity *vp) |
| int | crypt_get_integrity_info (struct crypt_device *cd, struct crypt_params_integrity *ip) |
| enum crypt_status_info |
| int crypt_dump | ( | struct crypt_device * | cd | ) |
Dump text-formatted information about crypt or verity device to log output.
| cd | crypt device handle |
| int crypt_dump_json | ( | struct crypt_device * | cd, |
| const char ** | json, | ||
| uint32_t | flags | ||
| ) |
Dump JSON-formatted information about LUKS2 device
| cd | crypt device handle (only LUKS2 format supported) |
| json | buffer with JSON, if NULL use log callback for output |
| flags | dump flags (reserved) |
| const char * crypt_get_cipher | ( | struct crypt_device * | cd | ) |
Get cipher used in device.
| cd | crypt device handle |
| const char * crypt_get_cipher_mode | ( | struct crypt_device * | cd | ) |
Get cipher mode used in device.
| cd | crypt device handle |
| uint64_t crypt_get_data_offset | ( | struct crypt_device * | cd | ) |
Get device offset in 512-bytes sectors where real data starts (on underlying device).
| cd | crypt device handle |
| const char * crypt_get_device_name | ( | struct crypt_device * | cd | ) |
Get path to underlying device.
| cd | crypt device handle |
| int crypt_get_integrity_info | ( | struct crypt_device * | cd, |
| struct crypt_params_integrity * | ip | ||
| ) |
Get device parameters for INTEGRITY device.
| cd | crypt device handle |
| ip | verity device info |
0 on success or negative errno value otherwise.
| uint64_t crypt_get_iv_offset | ( | struct crypt_device * | cd | ) |
Get IV offset in 512-bytes sectors (skip).
| cd | crypt device handle |
| const char * crypt_get_metadata_device_name | ( | struct crypt_device * | cd | ) |
Get path to detached metadata device or NULL if it is not detached.
| cd | crypt device handle |
| int crypt_get_old_volume_key_size | ( | struct crypt_device * | cd | ) |
Get size (in bytes) of old volume key for LUKS2 device in reencryption.
| cd | crypt LUKS2 device handle |
| int crypt_get_sector_size | ( | struct crypt_device * | cd | ) |
Get size (in bytes) of encryption sector for crypt device.
| cd | crypt device handle |
| const char * crypt_get_uuid | ( | struct crypt_device * | cd | ) |
Get device UUID.
| cd | crypt device handle |
| int crypt_get_verity_info | ( | struct crypt_device * | cd, |
| struct crypt_params_verity * | vp | ||
| ) |
Get device parameters for VERITY device.
| cd | crypt device handle |
| vp | verity device info |
0 on success or negative errno value otherwise.
| int crypt_get_volume_key_size | ( | struct crypt_device * | cd | ) |
Get size (in bytes) of volume key for crypt device.
| cd | crypt device handle |
| int crypt_header_is_detached | ( | struct crypt_device * | cd | ) |
Check if initialized LUKS context uses detached header (LUKS header located on a different device than data.)
| cd | crypt device handle |
| crypt_status_info crypt_status | ( | struct crypt_device * | cd, |
| const char * | name | ||
| ) |
Get status info about device name.
| cd | crypt device handle, can be NULL |
| name | crypt device name |