1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include "libfido2-util.h"
5 
6 struct crypt_device;
7 
8 int acquire_luks2_key(
9                 struct crypt_device *cd,
10                 const char *json,
11                 const char *device,
12                 const char *pin,
13                 char **ret_keyslot_passphrase,
14                 size_t *ret_keyslot_passphrase_size);
15 
16 int parse_luks2_fido2_data(
17                 struct crypt_device *cd,
18                 const char *json,
19                 char **ret_rp_id,
20                 void **ret_salt,
21                 size_t *ret_salt_size,
22                 void **ret_cid,
23                 size_t *ret_cid_size,
24                 Fido2EnrollFlags *ret_required);
25