cryptsetup API
Public cryptsetup API
|
Macros | |
#define | CRYPT_KEYFILE_STOP_EOL (UINT32_C(1) << 0) |
Functions | |
int | crypt_keyfile_device_read (struct crypt_device *cd, const char *keyfile, char **key, size_t *key_size_read, uint64_t keyfile_offset, size_t key_size, uint32_t flags) |
int | crypt_keyfile_read (struct crypt_device *cd, const char *keyfile, char **key, size_t *key_size_read, size_t keyfile_offset, size_t key_size, uint32_t flags) |
#define CRYPT_KEYFILE_STOP_EOL (UINT32_C(1) << 0) |
Read key only to the first end of line (\n).
int crypt_keyfile_device_read | ( | struct crypt_device * | cd, |
const char * | keyfile, | ||
char ** | key, | ||
size_t * | key_size_read, | ||
uint64_t | keyfile_offset, | ||
size_t | key_size, | ||
uint32_t | flags | ||
) |
Read keyfile
cd | crypt device handle |
keyfile | keyfile to read |
key | buffer for key |
key_size_read | size of read key |
keyfile_offset | key offset in keyfile |
key_size | exact key length to read from file or 0 |
flags | keyfile read flags |
int crypt_keyfile_read | ( | struct crypt_device * | cd, |
const char * | keyfile, | ||
char ** | key, | ||
size_t * | key_size_read, | ||
size_t | keyfile_offset, | ||
size_t | key_size, | ||
uint32_t | flags | ||
) |
Backward compatible crypt_keyfile_device_read() (with size_t offset).