cryptsetup API
Public cryptsetup API
|
Functions | |
int | crypt_volume_key_get (struct crypt_device *cd, int keyslot, char *volume_key, size_t *volume_key_size, const char *passphrase, size_t passphrase_size) |
int | crypt_volume_key_get_by_keyslot_context (struct crypt_device *cd, int keyslot, char *volume_key, size_t *volume_key_size, struct crypt_keyslot_context *kc) |
int | crypt_volume_key_verify (struct crypt_device *cd, const char *volume_key, size_t volume_key_size) |
int crypt_volume_key_get | ( | struct crypt_device * | cd, |
int | keyslot, | ||
char * | volume_key, | ||
size_t * | volume_key_size, | ||
const char * | passphrase, | ||
size_t | passphrase_size | ||
) |
Get volume key from crypt device.
cd | crypt device handle |
keyslot | use this keyslot or CRYPT_ANY_SLOT |
volume_key | buffer for volume key |
volume_key_size | on input, size of buffer volume_key, on output size of volume_key |
passphrase | passphrase used to unlock volume key |
passphrase_size | size of passphrase |
int crypt_volume_key_get_by_keyslot_context | ( | struct crypt_device * | cd, |
int | keyslot, | ||
char * | volume_key, | ||
size_t * | volume_key_size, | ||
struct crypt_keyslot_context * | kc | ||
) |
Get volume key from crypt device by keyslot context.
cd | crypt device handle |
keyslot | use this keyslot or CRYPT_ANY_SLOT |
volume_key | buffer for volume key |
volume_key_size | on input, size of buffer volume_key, on output size of volume_key |
kc | keyslot context used to unlock volume key |
int crypt_volume_key_verify | ( | struct crypt_device * | cd, |
const char * | volume_key, | ||
size_t | volume_key_size | ||
) |
Verify that provided volume key is valid for crypt device.
cd | crypt device handle |
volume_key | provided volume key |
volume_key_size | size of volume_key |