Lines Matching +full:0 +full:xc1

15 #define TPM_LIB_ERROR	((uint32_t)~0u)
44 static struct session_data oiap_session = {0, };
61 * @return 0 on success, non-0 on error
66 size_t offset = 0, length = 0; in pack_byte_string()
68 uint32_t value = 0; in pack_byte_string()
120 return 0; in pack_byte_string()
134 * @return 0 on success, non-0 on error
139 size_t offset = 0, length = 0; in unpack_byte_string()
193 return 0; in unpack_byte_string()
253 if (err < 0) in tpm_sendrecv_command()
275 0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x0, in tpm_startup()
281 0, command, sizeof(command), in tpm_startup()
291 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, in tpm_self_test_full()
299 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x53, in tpm_continue_self_test()
307 0x0, 0xc1, /* TPM_TAG */ in tpm_nv_define_space()
308 0x0, 0x0, 0x0, 0x65, /* parameter size */ in tpm_nv_define_space()
309 0x0, 0x0, 0x0, 0xcc, /* TPM_COMMAND_CODE */ in tpm_nv_define_space()
311 0x0, 0x18, /* ...->TPM_STRUCTURE_TAG */ in tpm_nv_define_space()
312 0, 0, 0, 0, /* ...->TPM_NV_INDEX */ in tpm_nv_define_space()
314 0x0, 0x3, in tpm_nv_define_space()
315 0, 0, 0, in tpm_nv_define_space()
316 0x1f, in tpm_nv_define_space()
317 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in tpm_nv_define_space()
319 0x0, 0x3, in tpm_nv_define_space()
320 0, 0, 0, in tpm_nv_define_space()
321 0x1f, in tpm_nv_define_space()
322 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in tpm_nv_define_space()
324 0x0, 0x17, /* ...->TPM_STRUCTURE_TAG */ in tpm_nv_define_space()
325 0, 0, 0, 0, /* ...->attributes */ in tpm_nv_define_space()
327 0, /* bReadSTClear */ in tpm_nv_define_space()
328 0, /* bWriteSTClear */ in tpm_nv_define_space()
329 0, /* bWriteDefine */ in tpm_nv_define_space()
330 0, 0, 0, 0, /* size */ in tpm_nv_define_space()
338 0, command, sizeof(command), in tpm_nv_define_space()
350 0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0xcf, in tpm_nv_read_value()
362 0, command, sizeof(command), in tpm_nv_read_value()
378 return 0; in tpm_nv_read_value()
384 0x0, 0xc1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcd, in tpm_nv_write_value()
398 0, command, sizeof(command), in tpm_nv_write_value()
408 return 0; in tpm_nv_write_value()
414 0x0, 0xc1, 0x0, 0x0, 0x0, 0x22, 0x0, 0x0, 0x0, 0x14, in tpm_extend()
425 0, command, sizeof(command), in tpm_extend()
439 return 0; in tpm_extend()
445 0x0, 0xc1, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x15, in tpm_pcr_read()
457 0, command, sizeof(command), in tpm_pcr_read()
467 return 0; in tpm_pcr_read()
473 0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x0, in tpm_tsc_physical_presence()
479 0, command, sizeof(command), in tpm_tsc_physical_presence()
489 0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, in tpm_read_pubek()
514 return 0; in tpm_read_pubek()
520 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, in tpm_force_clear()
529 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f, in tpm_physical_enable()
538 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x70, in tpm_physical_disable()
547 0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0, 0x72, in tpm_physical_set_deactivated()
553 0, command, sizeof(command), in tpm_physical_set_deactivated()
564 0x0, 0xc1, /* TPM_TAG */ in tpm_get_capability()
565 0x0, 0x0, 0x0, 0x16, /* parameter size */ in tpm_get_capability()
566 0x0, 0x0, 0x0, 0x65, /* TPM_COMMAND_CODE */ in tpm_get_capability()
567 0x0, 0x0, 0x0, 0x0, /* TPM_CAPABILITY_AREA */ in tpm_get_capability()
568 0x0, 0x0, 0x0, 0x4, /* subcap size */ in tpm_get_capability()
569 0x0, 0x0, 0x0, 0x0, /* subcap value */ in tpm_get_capability()
581 0, command, sizeof(command), in tpm_get_capability()
597 return 0; in tpm_get_capability()
603 0x0, 0xc1, /* TPM_TAG */ in tpm_get_permanent_flags()
604 0x0, 0x0, 0x0, 0x16, /* parameter size */ in tpm_get_permanent_flags()
605 0x0, 0x0, 0x0, 0x65, /* TPM_COMMAND_CODE */ in tpm_get_permanent_flags()
606 0x0, 0x0, 0x0, 0x4, /* TPM_CAP_FLAG_PERM */ in tpm_get_permanent_flags()
607 0x0, 0x0, 0x0, 0x4, /* subcap size */ in tpm_get_permanent_flags()
608 0x0, 0x0, 0x1, 0x8, /* subcap value */ in tpm_get_permanent_flags()
629 return 0; in tpm_get_permanent_flags()
635 0x0, 0xc1, /* TPM_TAG */ in tpm_get_permissions()
636 0x0, 0x0, 0x0, 0x16, /* parameter size */ in tpm_get_permissions()
637 0x0, 0x0, 0x0, 0x65, /* TPM_COMMAND_CODE */ in tpm_get_permissions()
638 0x0, 0x0, 0x0, 0x11, in tpm_get_permissions()
639 0x0, 0x0, 0x0, 0x4, in tpm_get_permissions()
647 if (pack_byte_string(buf, sizeof(buf), "d", 0, command, sizeof(command), in tpm_get_permissions()
657 return 0; in tpm_get_permissions()
664 0x00, 0xc1, /* TPM_TAG */ in tpm_flush_specific()
665 0x00, 0x00, 0x00, 0x12, /* parameter size */ in tpm_flush_specific()
666 0x00, 0x00, 0x00, 0xba, /* TPM_COMMAND_CODE */ in tpm_flush_specific()
667 0x00, 0x00, 0x00, 0x00, /* key handle */ in tpm_flush_specific()
668 0x00, 0x00, 0x00, 0x00, /* resource type */ in tpm_flush_specific()
677 0, command, sizeof(command), in tpm_flush_specific()
685 return 0; in tpm_flush_specific()
733 0, auth_session->handle, in create_request_auth()
783 0, command_code)) in verify_response_auth()
825 0x00, 0xc1, /* TPM_TAG */ in tpm_terminate_auth_session()
826 0x00, 0x00, 0x00, 0x00, /* parameter size */ in tpm_terminate_auth_session()
827 0x00, 0x00, 0x00, 0xba, /* TPM_COMMAND_CODE */ in tpm_terminate_auth_session()
828 0x00, 0x00, 0x00, 0x00, /* TPM_HANDLE */ in tpm_terminate_auth_session()
829 0x00, 0x00, 0x00, 0x02, /* TPM_RESSOURCE_TYPE */ in tpm_terminate_auth_session()
835 0, command, sizeof(command), in tpm_terminate_auth_session()
839 oiap_session.valid = 0; in tpm_terminate_auth_session()
855 0x00, 0xc1, /* TPM_TAG */ in tpm_oiap()
856 0x00, 0x00, 0x00, 0x0a, /* parameter size */ in tpm_oiap()
857 0x00, 0x00, 0x00, 0x0a, /* TPM_COMMAND_CODE */ in tpm_oiap()
879 return 0; in tpm_oiap()
888 0x00, 0xc2, /* TPM_TAG */ in tpm_load_key2_oiap()
889 0x00, 0x00, 0x00, 0x00, /* parameter size */ in tpm_load_key2_oiap()
890 0x00, 0x00, 0x00, 0x41, /* TPM_COMMAND_CODE */ in tpm_load_key2_oiap()
891 0x00, 0x00, 0x00, 0x00, /* parent handle */ in tpm_load_key2_oiap()
909 0, command, sizeof(command), in tpm_load_key2_oiap()
927 oiap_session.valid = 0; in tpm_load_key2_oiap()
931 err = verify_response_auth(0x00000041, response, in tpm_load_key2_oiap()
945 return 0; in tpm_load_key2_oiap()
952 0x00, 0xc2, /* TPM_TAG */ in tpm_get_pub_key_oiap()
953 0x00, 0x00, 0x00, 0x00, /* parameter size */ in tpm_get_pub_key_oiap()
954 0x00, 0x00, 0x00, 0x21, /* TPM_COMMAND_CODE */ in tpm_get_pub_key_oiap()
955 0x00, 0x00, 0x00, 0x00, /* key handle */ in tpm_get_pub_key_oiap()
972 0, command, sizeof(command), in tpm_get_pub_key_oiap()
986 oiap_session.valid = 0; in tpm_get_pub_key_oiap()
989 err = verify_response_auth(0x00000021, response, in tpm_get_pub_key_oiap()
991 0, &oiap_session, in tpm_get_pub_key_oiap()
1008 return 0; in tpm_get_pub_key_oiap()
1030 for (i = 0; i < key_count; ++i, ptr += 4) in tpm_find_key_sha1()
1034 for (i = 0; i < key_count; ++i) { in tpm_find_key_sha1()
1044 return 0; in tpm_find_key_sha1()