Add crypt_reencrypt_init_by_keyslot_context.

It allows initializing reencryption operation by
providing access to volume keys via keyslot context.
This commit is contained in:
Ondrej Kozina
2024-10-14 16:29:49 +02:00
parent 45af8de034
commit 651a089f38
9 changed files with 342 additions and 86 deletions

View File

@@ -2045,7 +2045,7 @@ static int action_open_luks(void)
password = NULL;
r = crypt_activate_by_keyslot_context(cd, activated_name, ARG_INT32(OPT_KEY_SLOT_ID),
kc, CRYPT_ANY_SLOT, NULL, activate_flags);
kc, CRYPT_ANY_SLOT, kc, activate_flags);
crypt_keyslot_context_free(kc);
kc = NULL;