Home
last modified time | relevance | path

Searched refs:TPM_DIGEST_SIZE (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/include/keys/
Dtrusted-type.h32 unsigned char keyauth[TPM_DIGEST_SIZE];
33 unsigned char blobauth[TPM_DIGEST_SIZE];
/Linux-v5.4/security/integrity/ima/
Dima_queue.c60 rc = memcmp(qe->entry->digest, digest_value, TPM_DIGEST_SIZE); in ima_lookup_digest_entry()
148 memcpy(digests[i].digest, hash, TPM_DIGEST_SIZE); in ima_pcr_extend()
168 u8 digest[TPM_DIGEST_SIZE]; in ima_add_template_entry()
Dima_init.c54 char digest[TPM_DIGEST_SIZE]; in ima_add_boot_aggregate()
Dima_fs.c155 ima_putc(m, e->digest, TPM_DIGEST_SIZE); in ima_measurements_show()
238 ima_print_digest(m, e->digest, TPM_DIGEST_SIZE); in ima_ascii_measurements_show()
Dima_api.c101 char digest[TPM_DIGEST_SIZE]; in ima_store_template()
Dima.h95 u8 digest[TPM_DIGEST_SIZE]; /* sha1 or md5 measurement hash */
Dima_template.c355 [HDR_DIGEST] = {.len = TPM_DIGEST_SIZE}, in ima_restore_measurement_list()
Dima_crypto.c678 rc = crypto_shash_update(shash, d.digest, TPM_DIGEST_SIZE); in ima_calc_boot_aggregate_tfm()
/Linux-v5.4/drivers/char/tpm/
Dtpm1-cmd.c459 tpm_buf_append(&buf, hash, TPM_DIGEST_SIZE); in tpm1_pcr_extend()
461 rc = tpm_transmit_cmd(chip, &buf, TPM_DIGEST_SIZE, log_msg); in tpm1_pcr_extend()
580 rc = tpm_transmit_cmd(chip, &buf, TPM_DIGEST_SIZE, in tpm1_pcr_read()
585 if (tpm_buf_length(&buf) < TPM_DIGEST_SIZE) { in tpm1_pcr_read()
590 memcpy(res_buf, &buf.data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE); in tpm1_pcr_read()
633 u8 dummy[TPM_DIGEST_SIZE]; in tpm1_do_selftest()
724 u8 dummy_hash[TPM_DIGEST_SIZE] = { 0 }; in tpm1_pm_suspend()
Dtpm2-cmd.c448 TPM_DIGEST_SIZE); in tpm2_seal_trusted()
451 tpm_buf_append_u16(&buf, 4 + TPM_DIGEST_SIZE + payload->key_len + 1); in tpm2_seal_trusted()
453 tpm_buf_append_u16(&buf, TPM_DIGEST_SIZE); in tpm2_seal_trusted()
454 tpm_buf_append(&buf, options->blobauth, TPM_DIGEST_SIZE); in tpm2_seal_trusted()
562 TPM_DIGEST_SIZE); in tpm2_load_cmd()
618 TPM_DIGEST_SIZE); in tpm2_unseal_cmd()
Dtpm-sysfs.c97 u8 digest[TPM_DIGEST_SIZE]; in pcrs_show()
119 for (j = 0; j < TPM_DIGEST_SIZE; j++) in pcrs_show()
/Linux-v5.4/include/linux/
Dtpm.h26 #define TPM_DIGEST_SIZE 20 /* Max TPM v1.2 PCR size */ macro