Home
last modified time | relevance | path

Searched refs:blob_size (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/cryptsetup/
Dcryptsetup-tpm2.c77 size_t blob_size; in acquire_tpm2_key() local
93 blob_size = key_data_size; in acquire_tpm2_key()
107 (char**) &loaded_blob, &blob_size); in acquire_tpm2_key()
121 blob_size, in acquire_tpm2_key()
144 blob_size, in acquire_tpm2_key()
177 size_t blob_size = 0, policy_hash_size = 0; in find_tpm2_auto_data() local
276 r = unbase64mem(json_variant_string(w), SIZE_MAX, &blob, &blob_size); in find_tpm2_auto_data()
314 *ret_blob_size = blob_size; in find_tpm2_auto_data()
Dcryptsetup.c1349 size_t blob_size, policy_hash_size; in attach_luks_or_plain_or_bitlk_by_tpm2() local
1369 &blob, &blob_size, in attach_luks_or_plain_or_bitlk_by_tpm2()
1395 blob, blob_size, in attach_luks_or_plain_or_bitlk_by_tpm2()
/systemd-251/src/cryptenroll/
Dcryptenroll-tpm2.c139 size_t secret_size, secret2_size, blob_size, hash_size; in enroll_tpm2() local
160 …r = tpm2_seal(device, pcr_mask, pin_str, &secret, &secret_size, &blob, &blob_size, &hash, &hash_si… 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/cryptsetup/cryptsetup-tokens/
Dcryptsetup-token-systemd-tpm2.c60 size_t blob_size, policy_hash_size, decrypted_key_size; in cryptsetup_token_open() local
89 r = unbase64mem(base64_blob, SIZE_MAX, &blob, &blob_size); in cryptsetup_token_open()
104 blob_size, in cryptsetup_token_open()
/systemd-251/src/shared/
Dtpm2-util.c846 size_t k, blob_size; in tpm2_seal() local
987 blob_size = offset; in tpm2_seal()
1015 *ret_blob_size = blob_size; in tpm2_seal()
1036 size_t blob_size, in tpm2_unseal() argument
1057 assert(blob_size > 0); in tpm2_unseal()
1080 rc = sym_Tss2_MU_TPM2B_PRIVATE_Unmarshal(blob, blob_size, &offset, &private); in tpm2_unseal()
1087 rc = sym_Tss2_MU_TPM2B_PUBLIC_Unmarshal(blob, blob_size, &offset, &public); in tpm2_unseal()
1370 size_t blob_size, in tpm2_make_luks2_json() argument
1382 assert(blob || blob_size == 0); in tpm2_make_luks2_json()
1410 … JSON_BUILD_PAIR("tpm2-blob", JSON_BUILD_BASE64(blob, blob_size)), in tpm2_make_luks2_json()
Dcreds-util.c426 le32_t blob_size; member
690 t->blob_size = htole32(tpm2_blob_size); in encrypt_credential_and_warn()
856 if (le32toh(t->blob_size) > CREDENTIAL_FIELD_SIZE_MAX) in decrypt_credential_and_warn()
865 …setof(struct tpm2_credential_header, policy_hash_and_blob) + le32toh(t->blob_size) + le32toh(t->po… in decrypt_credential_and_warn()
875 le32toh(t->blob_size), in decrypt_credential_and_warn()
876 t->policy_hash_and_blob + le32toh(t->blob_size), in decrypt_credential_and_warn()
885 le32toh(t->blob_size) + in decrypt_credential_and_warn()
Dtpm2-util.h48 …mask, uint16_t pcr_bank, uint16_t primary_alg, const void *blob, size_t blob_size, const void *pcr…
57 …mask, uint16_t pcr_bank, uint16_t primary_alg, const void *blob, size_t blob_size, const void *pol…
/systemd-251/src/partition/
Drepart.c2639 size_t secret_size, blob_size, hash_size; in partition_encrypt() local
2643 …rg_tpm2_device, arg_tpm2_pcr_mask, NULL, &secret, &secret_size, &blob, &blob_size, &hash, &hash_si… in partition_encrypt()
2665 …ake_luks2_json(keyslot, arg_tpm2_pcr_mask, pcr_bank, primary_alg, blob, blob_size, hash, hash_size… in partition_encrypt()