Searched refs:TPM_HEADER_SIZE (Results 1 – 9 of 9) sorted by relevance
103 *handle = be32_to_cpup((__be32 *)&tbuf->data[TPM_HEADER_SIZE]); in tpm2_load_context()135 body_size = tpm_buf_length(tbuf) - TPM_HEADER_SIZE; in tpm2_save_context()141 memcpy(&buf[*offset], &tbuf->data[TPM_HEADER_SIZE], body_size); in tpm2_save_context()239 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; in tpm2_map_command()260 if (len < TPM_HEADER_SIZE || !chip->nr_commands) in tpm_find_and_validate_cc()275 if (len < TPM_HEADER_SIZE + 4 * nr_handles) in tpm_find_and_validate_cc()382 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header()391 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle); in tpm2_map_response_header()436 if (len < TPM_HEADER_SIZE + 9) in tpm2_map_response_body()439 data = (void *)&rsp[TPM_HEADER_SIZE]; in tpm2_map_response_body()[all …]
151 out = (struct tpm2_pcr_read_out *)&buf->data[TPM_HEADER_SIZE]; in tpm2_pcr_read()277 offset = buf->handles * 4 + TPM_HEADER_SIZE; in tpm2_get_random()300 offset = TPM_HEADER_SIZE; in tpm2_get_random()308 TPM_HEADER_SIZE + in tpm2_get_random()375 &buf->data[TPM_HEADER_SIZE]; in tpm2_get_tpm_pt()544 (__be32 *)&buf->data[TPM_HEADER_SIZE + 5]); in tpm2_get_pcr_allocation()551 marker = &buf->data[TPM_HEADER_SIZE + 9]; in tpm2_get_pcr_allocation()633 be32_to_cpup((__be32 *)&buf->data[TPM_HEADER_SIZE + 5])) { in tpm2_get_cc_attrs_tbl()640 attrs = (__be32 *)&buf->data[TPM_HEADER_SIZE + 9]; in tpm2_get_cc_attrs_tbl()
169 off_t offset = TPM_HEADER_SIZE; in tpm2_read_public()258 slot = (tpm_buf_length(buf) - TPM_HEADER_SIZE) / 4; in tpm_buf_append_name()313 int offset = buf->handles * 4 + TPM_HEADER_SIZE; in tpm_buf_append_auth()602 off_t offset_s = TPM_HEADER_SIZE, offset_p; in tpm_buf_fill_hmac_session()790 if (auth->session >= TPM_HEADER_SIZE) { in tpm_buf_check_hmac_response()812 offset_s = TPM_HEADER_SIZE + handles * 4; in tpm_buf_check_hmac_response()891 auth->session = TPM_HEADER_SIZE; in tpm_buf_check_hmac_response()926 off_t offset = TPM_HEADER_SIZE; in tpm2_parse_start_auth_session()930 tot_len -= TPM_HEADER_SIZE; in tpm2_parse_start_auth_session()1018 auth->session = TPM_HEADER_SIZE; in tpm2_start_auth_session()[all …]
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()
499 *cap = *(cap_t *)&buf->data[TPM_HEADER_SIZE + 4]; in tpm1_getcap()543 out = (struct tpm1_get_random_out *)&buf->data[TPM_HEADER_SIZE]; in tpm1_get_random()549 if (tpm_buf_length(buf) < TPM_HEADER_SIZE + in tpm1_get_random()587 memcpy(res_buf, &buf->data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE); in tpm1_pcr_read()
279 if (count < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()309 if (size < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()
313 if (len < TPM_HEADER_SIZE) in st33zp24_send()394 if (count < TPM_HEADER_SIZE) { in st33zp24_recv()399 size = recv_data(chip, buf, TPM_HEADER_SIZE); in st33zp24_recv()400 if (size < TPM_HEADER_SIZE) { in st33zp24_recv()406 if (expected > count || expected < TPM_HEADER_SIZE) { in st33zp24_recv()411 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in st33zp24_recv()412 expected - TPM_HEADER_SIZE); in st33zp24_recv()
236 off_t offset = TPM_HEADER_SIZE; in tpm2_seal_trusted()466 (__be32 *)&buf->data[TPM_HEADER_SIZE]); in tpm2_load_cmd()535 offset = buf->handles * 4 + TPM_HEADER_SIZE; in tpm2_unseal_cmd()551 (__be16 *)&buf->data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd()555 if (tpm_buf_length(buf) < TPM_HEADER_SIZE + 6 + data_len) in tpm2_unseal_cmd()557 data = &buf->data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd()
510 #define TPM_HEADER_SIZE 10 macro