Lines Matching refs:size_t

63 int pack_byte_string(uint8_t *str, size_t size, const char *format, ...)  in pack_byte_string()
66 size_t offset = 0, length = 0; in pack_byte_string()
74 offset = va_arg(args, size_t); in pack_byte_string()
79 offset = va_arg(args, size_t); in pack_byte_string()
84 offset = va_arg(args, size_t); in pack_byte_string()
89 offset = va_arg(args, size_t); in pack_byte_string()
136 int unpack_byte_string(const uint8_t *str, size_t size, const char *format, ...) in unpack_byte_string()
139 size_t offset = 0, length = 0; in unpack_byte_string()
148 offset = va_arg(args, size_t); in unpack_byte_string()
153 offset = va_arg(args, size_t); in unpack_byte_string()
158 offset = va_arg(args, size_t); in unpack_byte_string()
163 offset = va_arg(args, size_t); in unpack_byte_string()
204 const size_t command_size_offset = 2; in tpm_command_size()
216 const size_t return_code_offset = 6; in tpm_return_code()
233 void *response, size_t *size_ptr) in tpm_sendrecv_command()
238 size_t response_length; in tpm_sendrecv_command()
277 const size_t mode_offset = 10; in tpm_startup()
332 const size_t index_offset = 12; in tpm_nv_define_space()
333 const size_t perm_offset = 70; in tpm_nv_define_space()
334 const size_t size_offset = 77; in tpm_nv_define_space()
352 const size_t index_offset = 10; in tpm_nv_read_value()
353 const size_t length_offset = 18; in tpm_nv_read_value()
354 const size_t data_size_offset = 10; in tpm_nv_read_value()
355 const size_t data_offset = 14; in tpm_nv_read_value()
357 size_t response_length = sizeof(response); in tpm_nv_read_value()
386 const size_t command_size_offset = 2; in tpm_nv_write_value()
387 const size_t index_offset = 10; in tpm_nv_write_value()
388 const size_t length_offset = 18; in tpm_nv_write_value()
389 const size_t data_offset = 22; in tpm_nv_write_value()
390 const size_t write_info_size = 12; in tpm_nv_write_value()
394 size_t response_length = sizeof(response); in tpm_nv_write_value()
416 const size_t index_offset = 10; in tpm_extend()
417 const size_t in_digest_offset = 14; in tpm_extend()
418 const size_t out_digest_offset = 10; in tpm_extend()
421 size_t response_length = sizeof(response); in tpm_extend()
442 uint32_t tpm_pcr_read(uint32_t index, void *data, size_t count) in tpm_pcr_read()
447 const size_t index_offset = 10; in tpm_pcr_read()
448 const size_t out_digest_offset = 10; in tpm_pcr_read()
450 size_t response_length = sizeof(response); in tpm_pcr_read()
475 const size_t presence_offset = 10; in tpm_tsc_physical_presence()
486 uint32_t tpm_read_pubek(void *data, size_t count) in tpm_read_pubek()
491 const size_t response_size_offset = 2; in tpm_read_pubek()
492 const size_t data_offset = 10; in tpm_read_pubek()
493 const size_t header_and_checksum_size = TPM_RESPONSE_HEADER_LENGTH + 20; in tpm_read_pubek()
495 size_t response_length = sizeof(response); in tpm_read_pubek()
549 const size_t state_offset = 10; in tpm_physical_set_deactivated()
561 void *cap, size_t count) in tpm_get_capability()
571 const size_t cap_area_offset = 10; in tpm_get_capability()
572 const size_t sub_cap_offset = 18; in tpm_get_capability()
573 const size_t cap_offset = 14; in tpm_get_capability()
574 const size_t cap_size_offset = 10; in tpm_get_capability()
576 size_t response_length = sizeof(response); in tpm_get_capability()
610 const size_t data_size_offset = TPM_HEADER_SIZE; in tpm_get_permanent_flags()
611 const size_t data_offset = TPM_HEADER_SIZE + sizeof (uint32_t); in tpm_get_permanent_flags()
613 size_t response_length = sizeof(response); in tpm_get_permanent_flags()
641 const size_t index_offset = 18; in tpm_get_permissions()
642 const size_t perm_offset = 60; in tpm_get_permissions()
644 size_t response_length = sizeof(response); in tpm_get_permissions()
670 const size_t key_handle_offset = 10; in tpm_flush_specific()
671 const size_t resource_type_offset = 14; in tpm_flush_specific()
673 size_t response_length = sizeof(response); in tpm_flush_specific()
703 static uint32_t create_request_auth(const void *request, size_t request_len0, in create_request_auth()
704 size_t handles_len, in create_request_auth()
710 const size_t command_code_offset = 6; in create_request_auth()
711 const size_t auth_nonce_odd_offset = 4; in create_request_auth()
712 const size_t auth_continue_offset = 24; in create_request_auth()
713 const size_t auth_auth_offset = 25; in create_request_auth()
767 const void *response, size_t response_len0, in verify_response_auth()
768 size_t handles_len, in verify_response_auth()
775 const size_t return_code_offset = 6; in verify_response_auth()
776 const size_t auth_continue_offset = 20; in verify_response_auth()
777 const size_t auth_auth_offset = 21; in verify_response_auth()
831 const size_t req_handle_offset = TPM_REQUEST_HEADER_LENGTH; in tpm_terminate_auth_session()
859 const size_t res_auth_handle_offset = TPM_RESPONSE_HEADER_LENGTH; in tpm_oiap()
860 const size_t res_nonce_even_offset = TPM_RESPONSE_HEADER_LENGTH + 4; in tpm_oiap()
862 size_t response_length = sizeof(response); in tpm_oiap()
883 const void *key, size_t key_length, in tpm_load_key2_oiap()
893 const size_t req_size_offset = 2; in tpm_load_key2_oiap()
894 const size_t req_parent_handle_offset = TPM_REQUEST_HEADER_LENGTH; in tpm_load_key2_oiap()
895 const size_t req_key_offset = TPM_REQUEST_HEADER_LENGTH + 4; in tpm_load_key2_oiap()
896 const size_t res_handle_offset = TPM_RESPONSE_HEADER_LENGTH; in tpm_load_key2_oiap()
900 size_t response_length = sizeof(response); in tpm_load_key2_oiap()
949 void *pubkey, size_t *pubkey_len) in tpm_get_pub_key_oiap()
957 const size_t req_size_offset = 2; in tpm_get_pub_key_oiap()
958 const size_t req_key_handle_offset = TPM_REQUEST_HEADER_LENGTH; in tpm_get_pub_key_oiap()
959 const size_t res_pubkey_offset = TPM_RESPONSE_HEADER_LENGTH; in tpm_get_pub_key_oiap()
963 size_t response_length = sizeof(response); in tpm_get_pub_key_oiap()
1021 size_t buf_len; in tpm_find_key_sha1()