summaryrefslogtreecommitdiff
path: root/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h')
-rw-r--r--src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h b/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h
index 0c93ea82cc..34c93216ee 100644
--- a/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h
+++ b/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h
@@ -2,6 +2,8 @@
#pragma once
+#include "tpm2-util.h"
+
struct crypt_device;
int acquire_luks2_key(
@@ -13,6 +15,7 @@ int acquire_luks2_key(
size_t key_data_size,
const void *policy_hash,
size_t policy_hash_size,
+ TPM2Flags flags,
void **ret_decrypted_key,
size_t *ret_decrypted_key_size);
@@ -23,4 +26,5 @@ int parse_luks2_tpm2_data(
uint16_t *ret_pcr_bank,
uint16_t *ret_primary_alg,
char **ret_base64_blob,
- char **ret_hex_policy_hash);
+ char **ret_hex_policy_hash,
+ TPM2Flags *ret_flags);