Home
last modified time | relevance | path

Searched refs:policy_hash_size (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/cryptsetup/
Dcryptsetup-tpm2.c67 size_t policy_hash_size, in acquire_tpm2_key() argument
123 policy_hash_size, in acquire_tpm2_key()
146 policy_hash_size, in acquire_tpm2_key()
177 size_t blob_size = 0, policy_hash_size = 0; in find_tpm2_auto_data() local
287 r = unhexmem(json_variant_string(w), SIZE_MAX, &policy_hash, &policy_hash_size); in find_tpm2_auto_data()
316 *ret_policy_hash_size = policy_hash_size; in find_tpm2_auto_data()
Dcryptsetup-tpm2.h26 size_t policy_hash_size,
63 size_t policy_hash_size, in acquire_tpm2_key() argument
Dcryptsetup.c1349 size_t blob_size, policy_hash_size; in attach_luks_or_plain_or_bitlk_by_tpm2() local
1370 &policy_hash, &policy_hash_size, in attach_luks_or_plain_or_bitlk_by_tpm2()
1396 policy_hash, policy_hash_size, in attach_luks_or_plain_or_bitlk_by_tpm2()
/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dcryptsetup-token-systemd-tpm2.c60 size_t blob_size, policy_hash_size, decrypted_key_size; in cryptsetup_token_open() local
94 r = unhexmem(hex_policy_hash, SIZE_MAX, &policy_hash, &policy_hash_size); in cryptsetup_token_open()
106 policy_hash_size, in cryptsetup_token_open()
Dluks2-tpm2.c23 size_t policy_hash_size, in acquire_luks2_key() argument
60 policy_hash, policy_hash_size, pin_str, in acquire_luks2_key()
Dluks2-tpm2.h17 size_t policy_hash_size,
/systemd-251/src/shared/
Dcreds-util.c427 le32_t policy_hash_size; member
691 t->policy_hash_size = htole32(tpm2_policy_hash_size); in encrypt_credential_and_warn()
858 if (le32toh(t->policy_hash_size) > CREDENTIAL_FIELD_SIZE_MAX) in decrypt_credential_and_warn()
865 …_credential_header, policy_hash_and_blob) + le32toh(t->blob_size) + le32toh(t->policy_hash_size)) + in decrypt_credential_and_warn()
877 le32toh(t->policy_hash_size), in decrypt_credential_and_warn()
886 le32toh(t->policy_hash_size)); in decrypt_credential_and_warn()
Dtpm2-util.h57 …const void *blob, size_t blob_size, const void *policy_hash, size_t policy_hash_size, TPM2Flags fl…
Dtpm2-util.c1372 size_t policy_hash_size, in tpm2_make_luks2_json() argument
1383 assert(policy_hash || policy_hash_size == 0); in tpm2_make_luks2_json()
1414 … JSON_BUILD_PAIR("tpm2-policy-hash", JSON_BUILD_HEX(policy_hash, policy_hash_size)), in tpm2_make_luks2_json()