Searched refs:TPM_HEADER_SIZE (Results 1 – 13 of 13) sorted by relevance
| /linux/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-cmd.c | 158 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; in tpm2_pcr_read() 291 offset = buf.handles * 4 + TPM_HEADER_SIZE; in tpm2_get_random() 315 offset = TPM_HEADER_SIZE; in tpm2_get_random() 323 TPM_HEADER_SIZE + in tpm2_get_random() 404 &buf.data[TPM_HEADER_SIZE]; in tpm2_get_tpm_pt() 578 (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]); in tpm2_get_pcr_allocation() 586 marker = &buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_pcr_allocation() 667 be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) { in tpm2_get_cc_attrs_tbl() 675 attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_cc_attrs_tbl()
|
| H A D | tpm2-sessions.c | 169 off_t offset = TPM_HEADER_SIZE; in tpm2_read_public() 265 slot = (tpm_buf_length(buf) - TPM_HEADER_SIZE) / 4; in tpm_buf_append_name() 317 int offset = buf->handles * 4 + TPM_HEADER_SIZE; in tpm_buf_append_auth() 588 off_t offset_s = TPM_HEADER_SIZE, offset_p; in tpm_buf_fill_hmac_session() 776 if (auth->session >= TPM_HEADER_SIZE) { in tpm_buf_check_hmac_response() 798 offset_s = TPM_HEADER_SIZE + handles * 4; in tpm_buf_check_hmac_response() 877 auth->session = TPM_HEADER_SIZE; in tpm_buf_check_hmac_response() 912 off_t offset = TPM_HEADER_SIZE; in tpm2_parse_start_auth_session() 916 tot_len -= TPM_HEADER_SIZE; in tpm2_parse_start_auth_session() 1002 auth->session = TPM_HEADER_SIZE; in tpm2_start_auth_session() [all …]
|
| 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 | 100 if (bufsiz < TPM_HEADER_SIZE) in tpm_try_transmit() 181 if (len < TPM_HEADER_SIZE || len != be32_to_cpu(header->length)) in tpm_try_transmit() 208 u8 save[TPM_HEADER_SIZE + 3*sizeof(u32)]; in tpm_transmit() 283 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_core.c | 349 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_try_recv() 351 if (size < TPM_HEADER_SIZE) { in tpm_tis_try_recv() 357 if (expected > count || expected < TPM_HEADER_SIZE) { in tpm_tis_try_recv() 362 rc = recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_try_recv() 363 expected - TPM_HEADER_SIZE); in tpm_tis_try_recv() 404 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 | 121 if (resp_len < TPM_HEADER_SIZE) { in ftpm_tee_tpm_op_send()
|
| H A D | tpm_crb.c | 373 if (count < TPM_HEADER_SIZE) in crb_recv() 389 if (expected > count || expected < TPM_HEADER_SIZE) in crb_recv()
|
| /linux/drivers/char/tpm/st33zp24/ |
| H A D | st33zp24.c | 311 if (len < TPM_HEADER_SIZE) in st33zp24_send() 392 if (count < TPM_HEADER_SIZE) { in st33zp24_recv() 397 size = recv_data(chip, buf, TPM_HEADER_SIZE); in st33zp24_recv() 398 if (size < TPM_HEADER_SIZE) { in st33zp24_recv() 404 if (expected > count || expected < TPM_HEADER_SIZE) { in st33zp24_recv() 409 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in st33zp24_recv() 410 expected - TPM_HEADER_SIZE); in st33zp24_recv()
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm2.c | 236 off_t offset = TPM_HEADER_SIZE; in tpm2_seal_trusted() 459 (__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_load_cmd() 527 offset = buf.handles * 4 + TPM_HEADER_SIZE; in tpm2_unseal_cmd() 543 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd() 549 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd() 553 data = &buf.data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd()
|
| /linux/include/linux/ |
| H A D | tpm.h | 221 #define TPM_HEADER_SIZE 10 macro
|