Home
last modified time | relevance | path

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

/Linux-v5.10/security/keys/trusted-keys/
Dtrusted_tpm2.c91 TPM_DIGEST_SIZE); in tpm2_seal_trusted()
94 tpm_buf_append_u16(&buf, 4 + TPM_DIGEST_SIZE + payload->key_len + 1); in tpm2_seal_trusted()
96 tpm_buf_append_u16(&buf, TPM_DIGEST_SIZE); in tpm2_seal_trusted()
97 tpm_buf_append(&buf, options->blobauth, TPM_DIGEST_SIZE); in tpm2_seal_trusted()
205 TPM_DIGEST_SIZE); in tpm2_load_cmd()
261 TPM_DIGEST_SIZE); in tpm2_unseal_cmd()
/Linux-v5.10/include/keys/
Dtrusted-type.h32 unsigned char keyauth[TPM_DIGEST_SIZE];
33 unsigned char blobauth[TPM_DIGEST_SIZE];
/Linux-v5.10/drivers/char/tpm/
Dtpm1-cmd.c474 tpm_buf_append(&buf, hash, TPM_DIGEST_SIZE); in tpm1_pcr_extend()
476 rc = tpm_transmit_cmd(chip, &buf, TPM_DIGEST_SIZE, log_msg); in tpm1_pcr_extend()
595 rc = tpm_transmit_cmd(chip, &buf, TPM_DIGEST_SIZE, in tpm1_pcr_read()
600 if (tpm_buf_length(&buf) < TPM_DIGEST_SIZE) { in tpm1_pcr_read()
605 memcpy(res_buf, &buf.data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE); in tpm1_pcr_read()
648 u8 dummy[TPM_DIGEST_SIZE]; in tpm1_do_selftest()
739 u8 dummy_hash[TPM_DIGEST_SIZE] = { 0 }; in tpm1_pm_suspend()
Dtpm-sysfs.c86 u8 digest[TPM_DIGEST_SIZE]; in pcrs_show()
108 for (j = 0; j < TPM_DIGEST_SIZE; j++) in pcrs_show()
/Linux-v5.10/security/integrity/ima/
Dima_template.c360 unsigned char zero[TPM_DIGEST_SIZE] = { 0 }; in ima_restore_measurement_list()
365 [HDR_DIGEST] = {.len = TPM_DIGEST_SIZE}, in ima_restore_measurement_list()
Dima_fs.c154 ima_putc(m, e->digests[ima_sha1_idx].digest, TPM_DIGEST_SIZE); in ima_measurements_show()
237 ima_print_digest(m, e->digests[ima_sha1_idx].digest, TPM_DIGEST_SIZE); in ima_ascii_measurements_show()
Dima_queue.c79 size += TPM_DIGEST_SIZE; in get_binary_runtime_size()
Dima_crypto.c661 TPM_DIGEST_SIZE); in ima_calc_field_array_hash()
/Linux-v5.10/include/linux/
Dtpm.h27 #define TPM_DIGEST_SIZE 20 /* Max TPM v1.2 PCR size */ macro