HomeSort by: relevance | last modified time | path
    Searched refs:hContext (Results 1 - 25 of 119) sorted by relevancy

1 2 3 4 5

  /src/crypto/external/cpl/trousers/dist/src/tcs/
tcsi_context.c 25 TCS_OpenContext_Internal(TCS_CONTEXT_HANDLE * hContext) /* out */
27 *hContext = make_context();
28 if (*hContext == 0)
35 TCS_CloseContext_Internal(TCS_CONTEXT_HANDLE hContext) /* in */
39 LogDebug("Closing context %.8X", hContext);
41 if ((result = ctx_verify_context(hContext)))
44 destroy_context(hContext);
46 /* close all auth handles associated with hContext */
47 auth_mgr_close_context(hContext);
51 LogDebug("Context %.8X closed", hContext);
    [all...]
tcsi_certify.c 31 TCSP_CertifyKey_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
49 if ((result = ctx_verify_context(hContext)))
54 if ((result = auth_mgr_check(hContext, &certAuth->AuthHandle)))
62 if ((result = auth_mgr_check(hContext, &keyAuth->AuthHandle)))
68 if ((result = ensureKeyIsLoaded(hContext, certHandle, &certKeySlot)))
71 if ((result = ensureKeyIsLoaded(hContext, keyHandle, &keySlot)))
88 auth_mgr_release_auth(certAuth, keyAuth, hContext);
tcsi_cmk.c 23 TCSP_CMK_SetRestrictions_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
34 if ((result = ctx_verify_context(hContext)))
37 if ((result = auth_mgr_check(hContext, &ownerAuth->AuthHandle)))
56 auth_mgr_release_auth(ownerAuth, NULL, hContext);
62 TCSP_CMK_ApproveMA_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
74 if ((result = ctx_verify_context(hContext)))
77 if ((result = auth_mgr_check(hContext, &ownerAuth->AuthHandle)))
96 auth_mgr_release_auth(ownerAuth, NULL, hContext);
102 TCSP_CMK_CreateKey_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
119 if ((result = ctx_verify_context(hContext))) {
    [all...]
tcsi_admin.c 30 TCSP_SetOwnerInstall_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
39 if ((result = ctx_verify_context(hContext)))
54 TCSP_OwnerSetDisable_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
63 if ((result = ctx_verify_context(hContext)))
66 if ((result = auth_mgr_check(hContext, &ownerAuth->AuthHandle)))
81 auth_mgr_release_auth(ownerAuth, NULL, hContext);
86 TCSP_DisableOwnerClear_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
96 if ((result = ctx_verify_context(hContext)))
99 if ((result = auth_mgr_check(hContext, &ownerAuth->AuthHandle)))
114 auth_mgr_release_auth(ownerAuth, NULL, hContext);
    [all...]
tcsi_seal.c 31 TCS_CONTEXT_HANDLE hContext, /* in */
52 if ((result = ctx_verify_context(hContext)))
55 if ((result = auth_mgr_check(hContext, &pubAuth->AuthHandle)))
58 if ((result = ensureKeyIsLoaded(hContext, keyHandle, &keySlot)))
83 auth_mgr_release_auth(pubAuth, NULL, hContext);
88 TCSP_Unseal_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
108 if ((result = ctx_verify_context(hContext)))
113 if ((result = auth_mgr_check(hContext, &parentAuth->AuthHandle)))
119 if ((result = auth_mgr_check(hContext, &dataAuth->AuthHandle)))
122 if ((result = ensureKeyIsLoaded(hContext, parentHandle, &keySlot))
    [all...]
tcsi_delegate.c 23 TCSP_Delegate_Manage_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
39 if ((result = ctx_verify_context(hContext)))
43 if ((result = auth_mgr_check(hContext, &ownerAuth->AuthHandle)))
63 auth_mgr_release_auth(ownerAuth, NULL, hContext);
69 TCSP_Delegate_CreateKeyDelegation_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
86 if ((result = ctx_verify_context(hContext)))
90 if ((result = auth_mgr_check(hContext, &keyAuth->AuthHandle)))
94 if ((result = ensureKeyIsLoaded(hContext, hKey, &keySlot)))
113 auth_mgr_release_auth(keyAuth, NULL, hContext);
119 TCSP_Delegate_CreateOwnerDelegation_Internal(TCS_CONTEXT_HANDLE hContext, /* in *
    [all...]
tcsi_migration.c 30 TCSP_CreateMigrationBlob_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
52 if ((result = ctx_verify_context(hContext)))
56 if ((result = auth_mgr_check(hContext, &parentAuth->AuthHandle)))
60 if ((result = auth_mgr_check(hContext, &entityAuth->AuthHandle)))
63 if ((result = ensureKeyIsLoaded(hContext, parentHandle, &keyHandle)))
97 auth_mgr_release_auth(entityAuth, parentAuth, hContext);
102 TCSP_ConvertMigrationBlob_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
119 if ((result = ctx_verify_context(hContext)))
124 if ((result = auth_mgr_check(hContext, &parentAuth->AuthHandle)))
129 if ((result = ensureKeyIsLoaded(hContext, parentHandle, &keySlot))
    [all...]
tcsi_key.c 28 TCSP_LoadKeyByBlob_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
36 return LoadKeyByBlob_Internal(TPM_ORD_LoadKey, hContext, hUnwrappingKey,
42 TCSP_LoadKey2ByBlob_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
49 return LoadKeyByBlob_Internal(TPM_ORD_LoadKey2, hContext, hUnwrappingKey,
56 TCS_CONTEXT_HANDLE hContext, /* in */
73 if ((result = ctx_verify_context(hContext)))
79 if ((result = get_slot(hContext, hUnwrappingKey, &parentSlot)))
132 if ((result = load_key_final(hContext, hUnwrappingKey, &newHandle, rgbWrappedKeyBlob,
143 auth_mgr_release_auth(pAuth, NULL, hContext);
148 TCSP_EvictKey_Internal(TCS_CONTEXT_HANDLE hContext, /* in *
    [all...]
tcsi_counter.c 28 TCSP_ReadCounter_Internal(TCS_CONTEXT_HANDLE hContext,
37 if ((result = ctx_verify_context(hContext)))
61 TCSP_CreateCounter_Internal(TCS_CONTEXT_HANDLE hContext,
79 if ((result = ctx_verify_context(hContext)))
82 if ((result = auth_mgr_check(hContext, &pOwnerAuth->AuthHandle)))
107 TCSP_IncrementCounter_Internal(TCS_CONTEXT_HANDLE hContext,
117 if ((result = ctx_verify_context(hContext)))
120 if ((result = auth_mgr_check(hContext, &pCounterAuth->AuthHandle)))
144 TCSP_ReleaseCounter_Internal(TCS_CONTEXT_HANDLE hContext,
153 if ((result = ctx_verify_context(hContext)))
    [all...]
tcsi_maint.c 30 TCSP_CreateMaintenanceArchive_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
45 if ((result = ctx_verify_context(hContext)))
48 if ((result = auth_mgr_check(hContext, &ownerAuth->AuthHandle)))
65 auth_mgr_release_auth(ownerAuth, NULL, hContext);
70 TCSP_LoadMaintenanceArchive_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
84 if ((result = ctx_verify_context(hContext)))
87 if ((result = auth_mgr_check(hContext, &ownerAuth->AuthHandle)))
104 auth_mgr_release_auth(ownerAuth, NULL, hContext);
109 TCSP_KillMaintenanceFeature_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
117 if ((result = ctx_verify_context(hContext)))
    [all...]
  /src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
rpc_context.c 33 TCS_CONTEXT_HANDLE hContext;
39 result = TCS_OpenContext_Internal(&hContext);
42 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
51 data->context = hContext;
53 LogDebug("New context is 0x%x", hContext);
65 TCS_CONTEXT_HANDLE hContext;
68 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
71 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
73 result = TCS_CloseContext_Internal(hContext);
rpc_admin.c 33 TCS_CONTEXT_HANDLE hContext;
37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
40 if ((result = ctx_verify_context(hContext)))
43 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
50 result = TCSP_PhysicalSetDeactivated_Internal(hContext, state);
63 TCS_CONTEXT_HANDLE hContext;
67 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
70 if ((result = ctx_verify_context(hContext)))
73 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
80 result = TCSP_DisableOwnerClear_Internal(hContext, &auth)
    [all...]
rpc_pcr_extend.c 33 TCS_CONTEXT_HANDLE hContext;
39 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
42 if ((result = ctx_verify_context(hContext)))
45 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
54 result = TCSP_Extend_Internal(hContext, pcrIndex, inDigest, &outDigest);
73 TCS_CONTEXT_HANDLE hContext;
78 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
81 if ((result = ctx_verify_context(hContext)))
84 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
91 result = TCSP_PcrRead_Internal(hContext, pcrIndex, &digest)
    [all...]
rpc_oper.c 33 TCS_CONTEXT_HANDLE hContext;
37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
40 if ((result = ctx_verify_context(hContext)))
43 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
50 result = TCSP_SetOperatorAuth_Internal(hContext, &operatorAuth);
rpc_dir.c 34 TSS_HCONTEXT hContext;
39 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
42 if ((result = ctx_verify_context(hContext)))
45 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
56 result = TCSP_DirWriteAuth_Internal(hContext, dirIndex, dirDigest, &auth);
77 TSS_HCONTEXT hContext;
81 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
84 if ((result = ctx_verify_context(hContext)))
87 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
94 result = TCSP_DirRead_Internal(hContext, dirIndex, &dirValue)
    [all...]
rpc_random.c 33 TCS_CONTEXT_HANDLE hContext;
38 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
41 if ((result = ctx_verify_context(hContext)))
44 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
51 result = TCSP_GetRandom_Internal(hContext, &bytesRequested, &randomBytes);
76 TCS_CONTEXT_HANDLE hContext;
81 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
84 if ((result = ctx_verify_context(hContext)))
87 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
104 result = TCSP_StirRandom_Internal(hContext, inDataSize, inData)
    [all...]
rpc_counter.c 33 TCS_CONTEXT_HANDLE hContext;
38 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
41 if ((result = ctx_verify_context(hContext)))
44 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
51 result = TCSP_ReadCounter_Internal(hContext, idCounter, &counterValue);
69 TCS_CONTEXT_HANDLE hContext;
78 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
81 if ((result = ctx_verify_context(hContext)))
84 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
109 result = TCSP_CreateCounter_Internal(hContext, LabelSize, pLabel, encauth, &auth
    [all...]
rpc_maint.c 33 TCS_CONTEXT_HANDLE hContext;
37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
40 if ((result = ctx_verify_context(hContext)))
43 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
50 result = TCSP_KillMaintenanceFeature_Internal(hContext, &ownerAuth);
70 TCS_CONTEXT_HANDLE hContext;
77 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
80 if ((result = ctx_verify_context(hContext)))
83 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
93 result = TCSP_CreateMaintenanceArchive_Internal(hContext, generateRandom, &ownerAuth
    [all...]
rpc_auth.c 33 TCS_CONTEXT_HANDLE hContext;
38 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
41 if ((result = ctx_verify_context(hContext)))
44 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
48 result = auth_mgr_oiap(hContext, &authHandle, &n0);
70 TCS_CONTEXT_HANDLE hContext;
80 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
83 if ((result = ctx_verify_context(hContext)))
86 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
97 result = auth_mgr_osap(hContext, entityType, entityValue, nonceOddOSAP
    [all...]
rpc_key.c 33 TCS_CONTEXT_HANDLE hContext;
37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
40 if ((result = ctx_verify_context(hContext)))
43 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
50 result = key_mgr_evict(hContext, hKey);
63 TCS_CONTEXT_HANDLE hContext;
72 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
75 if ((result = ctx_verify_context(hContext)))
78 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
93 result = TCSP_GetPubKey_Internal(hContext, hKey, pAuth, &pubKeySize, &pubKey)
    [all...]
rpc_ek.c 33 TCS_CONTEXT_HANDLE hContext;
42 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
45 if ((result = ctx_verify_context(hContext)))
48 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
68 result = TCSP_CreateEndorsementKeyPair_Internal(hContext, antiReplay, eKPtrSize, eKPtr,
99 TCS_CONTEXT_HANDLE hContext;
106 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
109 if ((result = ctx_verify_context(hContext)))
112 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
119 result = TCSP_ReadPubek_Internal(hContext, antiReplay, &pubEKSize, &pubEK, &checksum)
    [all...]
rpc_selftest.c 33 TCS_CONTEXT_HANDLE hContext;
36 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
39 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
43 result = TCSP_SelfTestFull_Internal(hContext);
56 TCS_CONTEXT_HANDLE hContext;
66 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
69 if ((result = ctx_verify_context(hContext)))
72 LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
89 result = TCSP_CertifySelfTest_Internal(hContext, hKey, antiReplay, pPrivAuth, &sigSize,
124 TCS_CONTEXT_HANDLE hContext;
    [all...]
  /src/crypto/external/cpl/trousers/dist/src/include/tss/
tcs.h 17 TCS_CONTEXT_HANDLE* hContext // out
21 TCS_CONTEXT_HANDLE hContext // in
25 TCS_CONTEXT_HANDLE hContext, // in
30 TCS_CONTEXT_HANDLE hContext, // in
39 TCS_CONTEXT_HANDLE hContext, // in
49 TCS_CONTEXT_HANDLE hContext, // in
54 TCS_CONTEXT_HANDLE hContext, // in
65 TCS_CONTEXT_HANDLE hContext, // in
72 TCS_CONTEXT_HANDLE hContext, // in
78 TCS_CONTEXT_HANDLE hContext, // in
    [all...]
  /src/crypto/external/cpl/trousers/dist/src/include/
tcs_utils.h 184 TSS_RESULT clearKeysFromChip(TCS_CONTEXT_HANDLE hContext);
284 TSS_RESULT TCS_OpenContext_Internal(TCS_CONTEXT_HANDLE * hContext /* out */
287 TSS_RESULT TCS_CloseContext_Internal(TCS_CONTEXT_HANDLE hContext /* in */
290 TSS_RESULT TCS_FreeMemory_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
294 TSS_RESULT TCS_LogPcrEvent_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
299 TSS_RESULT TCS_GetPcrEvent_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
305 TSS_RESULT TCS_GetPcrEventsByPcr_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
312 TSS_RESULT TCS_GetPcrEventLog_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
317 TSS_RESULT TCS_RegisterKey_Internal(TCS_CONTEXT_HANDLE hContext, /* in */
326 TSS_RESULT TCS_UnregisterKey_Internal(TCS_CONTEXT_HANDLE hContext, /* in *
    [all...]
  /src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_issuer/
key_verification.c 68 TSS_HCONTEXT hContext;
110 result = Tspi_Context_Create( &hContext );
119 result = Tspi_Context_Connect( hContext, NULL );
123 Tspi_Context_FreeMemory( hContext, NULL );
124 Tspi_Context_Close( hContext );
132 result = obj_daa_add( hContext, &hDAA);
135 Tspi_Context_Close(hContext);
142 obj_daa_remove( hDAA, hContext);
144 Tspi_Context_FreeMemory( hContext, NULL );
145 Tspi_Context_Close( hContext );
    [all...]

Completed in 27 milliseconds

1 2 3 4 5