Refactor activation by volume key(s) in helper routine.

This commit is contained in:
Ondrej Kozina
2025-04-25 21:47:43 +02:00
committed by Milan Broz
parent 8fcd8a78d8
commit cf29d51589
3 changed files with 111 additions and 47 deletions

View File

@@ -54,4 +54,14 @@ int luks_try_token_unlock(struct crypt_device *cd,
bool retry_with_pin,
struct crypt_keyslot_context **r_kc);
int luks_init_keyslot_contexts_by_volume_keys(struct crypt_device *cd,
const char *vk_file1,
const char *vk_file2,
int keysize1_bytes,
int keysize2_bytes,
const char *vk_in_keyring1,
const char *vk_in_keyring2,
struct crypt_keyslot_context **r_kc1,
struct crypt_keyslot_context **r_kc2);
#endif /* UTILS_LUKS_H */