Add --keep-key parameter for LUKS2 reencryption.

One of missing features when comparing to legacy
reencryption code.
This commit is contained in:
Ondrej Kozina
2021-04-26 13:15:51 +02:00
parent 98cd52c8d7
commit 74ad0d71b9
4 changed files with 92 additions and 35 deletions

View File

@@ -58,6 +58,7 @@
#define OPT_DEFERRED_ACTIONS { CLOSE_ACTION }
#define OPT_HOTZONE_SIZE_ACTIONS { REENCRYPT_ACTION }
#define OPT_INTEGRITY_ACTIONS { FORMAT_ACTION }
#define OPT_KEEP_KEY_ACTIONS { REENCRYPT_ACTION }
#define OPT_KEY_SIZE_ACTIONS { OPEN_ACTION, BENCHMARK_ACTION, FORMAT_ACTION, REENCRYPT_ACTION, ADDKEY_ACTION }
#define OPT_KEY_SLOT_ACTIONS { OPEN_ACTION, REENCRYPT_ACTION, CONFIG_ACTION, FORMAT_ACTION, ADDKEY_ACTION, CHANGEKEY_ACTION, CONVERTKEY_ACTION, LUKSDUMP_ACTION, TOKEN_ACTION }
#define OPT_LABEL_ACTIONS { CONFIG_ACTION, FORMAT_ACTION }