Add support for LUKS2 token export and import.

This commit is contained in:
Ondrej Kozina
2018-07-13 14:08:16 +02:00
committed by Milan Broz
parent 97ab7e9c65
commit cc27088df9
4 changed files with 227 additions and 16 deletions

View File

@@ -103,6 +103,9 @@ int tools_wipe_progress(uint64_t size, uint64_t offset, void *usrptr);
int tools_read_mk(const char *file, char **key, int keysize);
int tools_write_mk(const char *file, const char *key, int keysize);
int tools_read_json_file(struct crypt_device *cd, const char *file, char **json, size_t *json_size);
int tools_write_json_file(struct crypt_device *cd, const char *file, const char *json);
int tools_detect_signatures(const char *device, int ignore_luks, size_t *count);
int tools_wipe_all_signatures(const char *path);