Debian Codegraph @

src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #pragma once
4
5 #include "tpm2-util.h"
6
7 struct crypt_device;
8
9 int acquire_luks2_key(
10 const char *device,
11 uint32_t pcr_mask,
12 uint16_t pcr_bank,
13 const struct iovec *pubkey,
14 uint32_t pubkey_pcr_mask,
15 const char *signature_path,
16 const char *pin,
17 const char *pcrlock_path,
18 uint16_t primary_alg,
19 const struct iovec blobs[],
20 size_t n_blobs,
21 const struct iovec policy_hash[],
22 size_t n_policy_hash,
23 const struct iovec *salt,
24 const struct iovec *srk,
25 const struct iovec *pcrlock_nv,
26 TPM2Flags flags,
27 struct iovec *decrypted_key);