/systemd-251/src/cryptsetup/ |
D | cryptsetup-tpm2.c | 59 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()
|
D | cryptsetup-tpm2.h | 18 uint16_t pcr_bank, 55 uint16_t pcr_bank, in acquire_tpm2_key() argument
|
D | cryptsetup.c | 1359 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/ |
D | luks2-tpm2.c | 17 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()
|
D | cryptsetup-token-systemd-tpm2.c | 62 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()
|
D | luks2-tpm2.h | 11 uint16_t pcr_bank,
|
/systemd-251/src/cryptenroll/ |
D | cryptenroll-tpm2.c | 141 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/ |
D | tpm2-util.c | 669 …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 …]
|
D | tpm2-util.h | 48 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…
|
D | creds-util.c | 424 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/ |
D | repart.c | 2640 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()
|