1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 
3 #pragma once
4 
5 struct crypt_device;
6 
7 int acquire_luks2_key(
8                 struct crypt_device *cd,
9                 const char *json,
10                 void *userdata,
11                 const void *pin,
12                 size_t pin_size,
13                 char **password,
14                 size_t *password_size);
15 
16 int parse_luks2_pkcs11_data(
17                 struct crypt_device *cd,
18                 const char *json,
19                 char **ret_uri,
20                 void **ret_encrypted_key,
21                 size_t *ret_encrypted_key_size);
22