Searched refs:TPM_HEADER_SIZE (Results 1 – 14 of 14) sorted by relevance
| /linux-6.15/drivers/char/tpm/ |
| H A D | tpm2-space.c | 118 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); in tpm2_load_context() 154 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; in tpm2_save_context() 161 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size); in tpm2_save_context() 260 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; in tpm2_map_command() 281 if (len < TPM_HEADER_SIZE || !chip->nr_commands) in tpm_find_and_validate_cc() 296 if (len < TPM_HEADER_SIZE + 4 * nr_handles) in tpm_find_and_validate_cc() 403 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header() 412 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle); in tpm2_map_response_header() 457 if (len < TPM_HEADER_SIZE + 9) in tpm2_map_response_body() 460 data = (void *)&rsp[TPM_HEADER_SIZE]; in tpm2_map_response_body() [all …]
|
| H A D | tpm2-sessions.c | 162 off_t offset = TPM_HEADER_SIZE; in tpm2_parse_read_public() 167 tot_len -= TPM_HEADER_SIZE; in tpm2_parse_read_public() 591 off_t offset_s = TPM_HEADER_SIZE, offset_p; in tpm_buf_fill_hmac_session() 762 if (auth->session >= TPM_HEADER_SIZE) { in tpm_buf_check_hmac_response() 784 offset_s = TPM_HEADER_SIZE + handles * 4; in tpm_buf_check_hmac_response() 864 auth->session = TPM_HEADER_SIZE; in tpm_buf_check_hmac_response() 899 off_t offset = TPM_HEADER_SIZE; in tpm2_parse_start_auth_session() 903 tot_len -= TPM_HEADER_SIZE; in tpm2_parse_start_auth_session() 989 auth->session = TPM_HEADER_SIZE; in tpm2_start_auth_session() 1071 u16 len = TPM_HEADER_SIZE; in tpm2_parse_create_primary() [all …]
|
| H A D | tpm2-cmd.c | 206 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; in tpm2_pcr_read() 340 offset = TPM_HEADER_SIZE; in tpm2_get_random() 348 TPM_HEADER_SIZE + in tpm2_get_random() 429 &buf.data[TPM_HEADER_SIZE]; in tpm2_get_tpm_pt() 603 (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]); in tpm2_get_pcr_allocation() 613 marker = &buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_pcr_allocation() 694 be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) { in tpm2_get_cc_attrs_tbl() 702 attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_cc_attrs_tbl()
|
| H A D | tpm_i2c_infineon.c | 474 if (count < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv() 480 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_i2c_recv() 481 if (size < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv() 487 if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { in tpm_tis_i2c_recv() 492 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_i2c_recv() 493 expected - TPM_HEADER_SIZE); in tpm_tis_i2c_recv()
|
| H A D | tpm-interface.c | 93 if (bufsiz < TPM_HEADER_SIZE) in tpm_try_transmit() 154 } else if (len < TPM_HEADER_SIZE || len != be32_to_cpu(header->length)) in tpm_try_transmit() 181 u8 save[TPM_HEADER_SIZE + 3*sizeof(u32)]; in tpm_transmit() 256 if (len < min_rsp_body_length + TPM_HEADER_SIZE) in tpm_transmit_cmd()
|
| H A D | tpm1-cmd.c | 508 *cap = *(cap_t *)&buf.data[TPM_HEADER_SIZE + 4]; in tpm1_getcap() 555 out = (struct tpm1_get_random_out *)&buf.data[TPM_HEADER_SIZE]; in tpm1_get_random() 563 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + in tpm1_get_random() 605 memcpy(res_buf, &buf.data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE); in tpm1_pcr_read()
|
| H A D | tpm_tis_i2c_cr50.c | 477 if (buf_len < TPM_HEADER_SIZE) in tpm_cr50_i2c_tis_recv() 484 if (burstcnt > buf_len || burstcnt < TPM_HEADER_SIZE) { in tpm_cr50_i2c_tis_recv() 487 burstcnt, buf_len, TPM_HEADER_SIZE); in tpm_cr50_i2c_tis_recv()
|
| H A D | tpm_tis_core.c | 350 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_try_recv() 352 if (size < TPM_HEADER_SIZE) { in tpm_tis_try_recv() 358 if (expected > count || expected < TPM_HEADER_SIZE) { in tpm_tis_try_recv() 363 rc = recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_try_recv() 364 expected - TPM_HEADER_SIZE); in tpm_tis_try_recv() 405 if (count < TPM_HEADER_SIZE) in tpm_tis_recv()
|
| H A D | tpm_i2c_nuvoton.c | 277 if (count < TPM_HEADER_SIZE) { in i2c_nuvoton_recv() 307 if (size < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()
|
| H A D | tpm_ftpm_tee.c | 148 if (resp_len < TPM_HEADER_SIZE) { in ftpm_tee_tpm_op_send()
|
| H A D | tpm_crb.c | 360 if (count < TPM_HEADER_SIZE) in crb_recv() 376 if (expected > count || expected < TPM_HEADER_SIZE) in crb_recv()
|
| /linux-6.15/drivers/char/tpm/st33zp24/ |
| H A D | st33zp24.c | 311 if (len < TPM_HEADER_SIZE) in st33zp24_send() 390 if (count < TPM_HEADER_SIZE) { in st33zp24_recv() 395 size = recv_data(chip, buf, TPM_HEADER_SIZE); in st33zp24_recv() 396 if (size < TPM_HEADER_SIZE) { in st33zp24_recv() 402 if (expected > count || expected < TPM_HEADER_SIZE) { in st33zp24_recv() 407 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in st33zp24_recv() 408 expected - TPM_HEADER_SIZE); in st33zp24_recv()
|
| /linux-6.15/security/keys/trusted-keys/ |
| H A D | trusted_tpm2.c | 244 off_t offset = TPM_HEADER_SIZE; in tpm2_seal_trusted() 464 (__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_load_cmd() 542 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd() 548 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd() 552 data = &buf.data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd()
|
| /linux-6.15/include/linux/ |
| H A D | tpm.h | 218 #define TPM_HEADER_SIZE 10 macro 543 offset = buf->handles * 4 + TPM_HEADER_SIZE; in tpm_buf_append_hmac_session_opt()
|