Home
last modified time | relevance | path

Searched refs:pcr_bank (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/cryptsetup/
Dcryptsetup-tpm2.c59 uint16_t pcr_bank, in acquire_tpm2_key() argument
118 pcr_bank, in acquire_tpm2_key()
141 pcr_bank, in acquire_tpm2_key()
181 uint16_t pcr_bank = UINT16_MAX; /* default: pick automatically */ in find_tpm2_auto_data() local
233 assert(pcr_bank == UINT16_MAX); in find_tpm2_auto_data()
250 pcr_bank = r; in find_tpm2_auto_data()
319 *ret_pcr_bank = pcr_bank; in find_tpm2_auto_data()
Dcryptsetup-tpm2.h18 uint16_t pcr_bank,
55 uint16_t pcr_bank, in acquire_tpm2_key() argument
Dcryptsetup.c1359 uint16_t pcr_bank, primary_alg; in attach_luks_or_plain_or_bitlk_by_tpm2() local
1367 &pcr_bank, in attach_luks_or_plain_or_bitlk_by_tpm2()
1392 pcr_bank, in attach_luks_or_plain_or_bitlk_by_tpm2()
/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dluks2-tpm2.c17 uint16_t pcr_bank, in acquire_luks2_key() argument
57 pcr_mask, pcr_bank, in acquire_luks2_key()
78 uint16_t pcr_bank = UINT16_MAX, primary_alg = TPM2_ALG_ECC; in parse_luks2_tpm2_data() local
126 pcr_bank = r; in parse_luks2_tpm2_data()
169 *ret_pcr_bank = pcr_bank; in parse_luks2_tpm2_data()
Dcryptsetup-token-systemd-tpm2.c62 uint16_t pcr_bank, primary_alg; in cryptsetup_token_open() local
84 …r = parse_luks2_tpm2_data(json, params.search_pcr_mask, &pcr_mask, &pcr_bank, &primary_alg, &base6… in cryptsetup_token_open()
100 pcr_bank, in cryptsetup_token_open()
144 uint16_t pcr_bank, primary_alg; in cryptsetup_token_dump() local
152 …r = parse_luks2_tpm2_data(json, UINT32_MAX, &pcr_mask, &pcr_bank, &primary_alg, &base64_blob, &hex… in cryptsetup_token_dump()
175 crypt_log(cd, "\ttpm2-bank: %s\n", strna(tpm2_pcr_bank_to_string(pcr_bank))); in cryptsetup_token_dump()
Dluks2-tpm2.h11 uint16_t pcr_bank,
/systemd-251/src/cryptenroll/
Dcryptenroll-tpm2.c141 uint16_t pcr_bank, primary_alg; in enroll_tpm2() local
160 …sk, pin_str, &secret, &secret_size, &blob, &blob_size, &hash, &hash_size, &pcr_bank, &primary_alg); in enroll_tpm2()
177 …r = tpm2_unseal(device, pcr_mask, pcr_bank, primary_alg, blob, blob_size, hash, hash_size, pin_str… in enroll_tpm2()
203 …r = tpm2_make_luks2_json(keyslot, pcr_mask, pcr_bank, primary_alg, blob, blob_size, hash, hash_siz… in enroll_tpm2()
/systemd-251/src/shared/
Dtpm2-util.c669 …uint16_t pcr_bank, /* If UINT16_MAX, pick best bank automatically, otherwise specify bank explicit… in tpm2_make_pcr_session() argument
694 if (pcr_bank != UINT16_MAX) { in tpm2_make_pcr_session()
695 r = tpm2_pcr_mask_good(c, pcr_bank, pcr_mask); in tpm2_make_pcr_session()
701 tpm2_pcr_mask_to_selecion(pcr_mask, pcr_bank, &pcr_selection); in tpm2_make_pcr_session()
845 TPMI_ALG_HASH pcr_bank; in tpm2_seal() local
892 &policy_digest, &pcr_bank); in tpm2_seal()
1018 *ret_pcr_bank = pcr_bank; in tpm2_seal()
1033 uint16_t pcr_bank, in tpm2_unseal() argument
1104 …r = tpm2_make_pcr_session(c.esys_context, primary, hmac_session, pcr_mask, pcr_bank, !!pin, &sessi… in tpm2_unseal()
1367 uint16_t pcr_bank, in tpm2_make_luks2_json() argument
[all …]
Dtpm2-util.h48 int tpm2_unseal(const char *device, uint32_t pcr_mask, uint16_t pcr_bank, uint16_t primary_alg, con…
57 int tpm2_make_luks2_json(int keyslot, uint32_t pcr_mask, uint16_t pcr_bank, uint16_t primary_alg, c…
Dcreds-util.c424 le16_t pcr_bank; /* For now, either TPM2_ALG_SHA256 or TPM2_ALG_SHA1 */ member
688 t->pcr_bank = htole16(tpm2_pcr_bank); in encrypt_credential_and_warn()
852 if (!tpm2_pcr_bank_to_string(le16toh(t->pcr_bank))) in decrypt_credential_and_warn()
872 le16toh(t->pcr_bank), in decrypt_credential_and_warn()
/systemd-251/src/partition/
Drepart.c2640 uint16_t pcr_bank, primary_alg; in partition_encrypt() local
2643 …_mask, NULL, &secret, &secret_size, &blob, &blob_size, &hash, &hash_size, &pcr_bank, &primary_alg); in partition_encrypt()
2665 …r = tpm2_make_luks2_json(keyslot, arg_tpm2_pcr_mask, pcr_bank, primary_alg, blob, blob_size, hash,… in partition_encrypt()