Lines Matching refs:hContext
45 int cmd_status(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[]);
46 int cmd_init(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[]);
47 int cmd_clear(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[]);
48 int cmd_auth(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[]);
49 int cmd_keyinfo(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[]);
50 int cmd_deletekey(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[]);
71 print_tpm_version(TSS_HCONTEXT hContext, TSS_HOBJECT hTPM)
78 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_VERSION_VAL,
99 tpm_is_owned(TSS_HCONTEXT hContext, TSS_HOBJECT hTPM)
103 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
111 print_tpm_resources(TSS_HCONTEXT hContext, TSS_HOBJECT hTPM)
117 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
120 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
125 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
128 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
133 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
136 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
142 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
145 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
154 print_tpm_pcrs(TSS_HCONTEXT hContext, TSS_HOBJECT hTPM)
159 if (get_tpm_capability(hContext, hTPM, TSS_TPMCAP_PROPERTY,
180 ret = Tspi_Context_FreeMemory(hContext, data);
191 cmd_status(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[])
196 (void) print_tpm_version(hContext, hTPM);
197 if (tpm_is_owned(hContext, hTPM)) {
198 (void) print_tpm_resources(hContext, hTPM);
199 (void) print_tpm_pcrs(hContext, hTPM);
274 print_key_info(TSS_HCONTEXT hContext, TSS_HOBJECT hKey)
341 ret = Tspi_Context_FreeMemory(hContext, keyInfo);
419 cmd_keyinfo(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[])
434 ret = Tspi_Context_GetRegisteredKeysByUUID2(hContext,
452 ret = Tspi_Context_FreeMemory(hContext, (BYTE *) keys);
463 ret = Tspi_Context_GetKeyByUUID(hContext, TSS_PS_TYPE_USER,
466 ret = Tspi_Context_GetKeyByUUID(hContext,
473 print_key_info(hContext, hKey);
485 cmd_deletekey(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[])
501 ret = Tspi_Context_UnregisterKey(hContext, TSS_PS_TYPE_USER,
504 ret = Tspi_Context_UnregisterKey(hContext, TSS_PS_TYPE_SYSTEM,
554 cmd_clear(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[])
605 createek(TSS_HCONTEXT hContext, TSS_HTPM hTPM)
614 ret = Tspi_Context_CreateObject(hContext, TSS_OBJECT_TYPE_RSAKEY,
644 cmd_init(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[])
653 ret = Tspi_Context_CreateObject(hContext, TSS_OBJECT_TYPE_RSAKEY,
666 if (createek(hContext, hTPM))
684 cmd_auth(TSS_HCONTEXT hContext, TSS_HTPM hTPM, int argc, char *argv[])
694 ret = Tspi_Context_CreateObject(hContext, TSS_OBJECT_TYPE_POLICY,