Lines Matching defs:cd

55 void crypt_log(struct crypt_device *cd, int level, const char *msg)  in crypt_log()
63 void logger(struct crypt_device *cd, int level, const char *file, in logger()
93 static char *process_key(struct crypt_device *cd, const char *hash_name, in process_key()
165 static int keyslot_verify_or_find_empty(struct crypt_device *cd, int *keyslot) in keyslot_verify_or_find_empty()
191 static int verify_other_keyslot(struct crypt_device *cd, in verify_other_keyslot()
227 static int find_keyslot_by_passphrase(struct crypt_device *cd, in find_keyslot_by_passphrase()
250 static int device_check_and_adjust(struct crypt_device *cd, in device_check_and_adjust()
284 static int luks_remove_helper(struct crypt_device *cd, in luks_remove_helper()
336 static int create_device_helper(struct crypt_device *cd, in create_device_helper()
394 static int open_from_hdr_and_mk(struct crypt_device *cd, in open_from_hdr_and_mk()
436 int crypt_confirm(struct crypt_device *cd, const char *msg) in crypt_confirm()
444 static void key_from_terminal(struct crypt_device *cd, char *msg, char **key, in key_from_terminal()
466 static int volume_key_by_terminal_passphrase(struct crypt_device *cd, int keyslot, in volume_key_by_terminal_passphrase()
505 static void key_from_file(struct crypt_device *cd, char *msg, in key_from_file()
512 static int _crypt_init(struct crypt_device **cd, in _crypt_init()
560 void crypt_set_log_callback(struct crypt_device *cd, in crypt_set_log_callback()
572 void crypt_set_confirm_callback(struct crypt_device *cd, in crypt_set_confirm_callback()
580 void crypt_set_password_callback(struct crypt_device *cd, in crypt_set_password_callback()
593 struct crypt_device *cd = NULL; in crypt_create_and_update_device() local
631 struct crypt_device *cd = NULL; in crypt_resize_device() local
723 struct crypt_device *cd = NULL; in crypt_remove_device() local
743 struct crypt_device *cd = NULL; in crypt_luksFormat() local
791 struct crypt_device *cd = NULL; in crypt_luksOpen() local
825 struct crypt_device *cd = NULL; in crypt_luksKillSlot() local
842 struct crypt_device *cd = NULL; in crypt_luksRemoveKey() local
861 struct crypt_device *cd = NULL; in crypt_luksAddKey() local
883 struct crypt_device *cd = NULL; in crypt_luksUUID() local
901 struct crypt_device *cd = NULL; in crypt_isLuks() local
925 struct crypt_device *cd = NULL; in crypt_luksDump() local
976 int crypt_init(struct crypt_device **cd, const char *device) in crypt_init()
1014 int crypt_init_by_name(struct crypt_device **cd, const char *name) in crypt_init_by_name()
1046 static int _crypt_format_plain(struct crypt_device *cd, in _crypt_format_plain()
1080 static int _crypt_format_luks1(struct crypt_device *cd, in _crypt_format_luks1()
1122 int crypt_format(struct crypt_device *cd, in crypt_format()
1176 int crypt_load(struct crypt_device *cd, in crypt_load()
1210 int crypt_header_backup(struct crypt_device *cd, in crypt_header_backup()
1229 int crypt_header_restore(struct crypt_device *cd, in crypt_header_restore()
1248 void crypt_free(struct crypt_device *cd) in crypt_free()
1270 int crypt_suspend(struct crypt_device *cd, in crypt_suspend()
1309 int crypt_resume_by_passphrase(struct crypt_device *cd, in crypt_resume_by_passphrase()
1356 int crypt_resume_by_keyfile(struct crypt_device *cd, in crypt_resume_by_keyfile()
1412 int crypt_keyslot_add_by_passphrase(struct crypt_device *cd, in crypt_keyslot_add_by_passphrase()
1491 int crypt_keyslot_add_by_keyfile(struct crypt_device *cd, in crypt_keyslot_add_by_keyfile()
1565 int crypt_keyslot_add_by_volume_key(struct crypt_device *cd, in crypt_keyslot_add_by_volume_key()
1617 int crypt_keyslot_destroy(struct crypt_device *cd, int keyslot) in crypt_keyslot_destroy()
1643 int crypt_activate_by_passphrase(struct crypt_device *cd, in crypt_activate_by_passphrase()
1701 int crypt_activate_by_keyfile(struct crypt_device *cd, in crypt_activate_by_keyfile()
1755 int crypt_activate_by_volume_key(struct crypt_device *cd, in crypt_activate_by_volume_key()
1805 int crypt_deactivate(struct crypt_device *cd, const char *name) in crypt_deactivate()
1841 int crypt_volume_key_get(struct crypt_device *cd, in crypt_volume_key_get()
1888 int crypt_volume_key_verify(struct crypt_device *cd, in crypt_volume_key_verify()
1914 void crypt_set_timeout(struct crypt_device *cd, uint64_t timeout_sec) in crypt_set_timeout()
1920 void crypt_set_password_retry(struct crypt_device *cd, int tries) in crypt_set_password_retry()
1926 void crypt_set_iterarion_time(struct crypt_device *cd, uint64_t iteration_time_ms) in crypt_set_iterarion_time()
1932 void crypt_set_password_verify(struct crypt_device *cd, int password_verify) in crypt_set_password_verify()
1938 int crypt_memory_lock(struct crypt_device *cd, int lock) in crypt_memory_lock()
1944 crypt_status_info crypt_status(struct crypt_device *cd, const char *name) in crypt_status()
1968 static void hexprintICB(struct crypt_device *cd, char *d, int n) in hexprintICB()
1975 int crypt_dump(struct crypt_device *cd) in crypt_dump()
2024 const char *crypt_get_cipher(struct crypt_device *cd) in crypt_get_cipher()
2035 const char *crypt_get_cipher_mode(struct crypt_device *cd) in crypt_get_cipher_mode()
2046 const char *crypt_get_uuid(struct crypt_device *cd) in crypt_get_uuid()
2054 int crypt_get_volume_key_size(struct crypt_device *cd) in crypt_get_volume_key_size()
2065 uint64_t crypt_get_data_offset(struct crypt_device *cd) in crypt_get_data_offset()
2076 crypt_keyslot_info crypt_keyslot_status(struct crypt_device *cd, int keyslot) in crypt_keyslot_status()