Home
last modified time | relevance | path

Searched refs:primaryHandle (Results 1 – 25 of 35) sorted by relevance

12

/external/tpm2-tss/test/integration/
Desys-quote.int.c40 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_quote() local
134 &primaryHandle, &outPublic, &creationData, in test_esys_quote()
138 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_quote()
145 r = Esys_TR_SetAuth(esys_context, primaryHandle, in test_esys_quote()
165 r = Esys_Quote(esys_context, primaryHandle, in test_esys_quote()
171 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_quote()
185 if (primaryHandle != ESYS_TR_NONE) { in test_esys_quote()
186 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_quote()
Desys-rsa-encrypt-decrypt.int.c42 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_rsa_encrypt_decrypt() local
139 &primaryHandle, &outPublic, &creationData, in test_esys_rsa_encrypt_decrypt()
147 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_rsa_encrypt_decrypt()
154 r = Esys_TR_SetAuth(esys_context, primaryHandle, in test_esys_rsa_encrypt_decrypt()
171 r = Esys_RSA_Encrypt(esys_context, primaryHandle, ESYS_TR_NONE, in test_esys_rsa_encrypt_decrypt()
178 r = Esys_RSA_Decrypt(esys_context, primaryHandle, in test_esys_rsa_encrypt_decrypt()
191 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_rsa_encrypt_decrypt()
200 if (primaryHandle != ESYS_TR_NONE) { in test_esys_rsa_encrypt_decrypt()
201 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_rsa_encrypt_decrypt()
Desys-unseal-password-auth.int.c54 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_unseal_password_auth() local
143 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_unseal_password_auth()
148 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_unseal_password_auth()
155 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_unseal_password_auth()
248 primaryHandle, in test_esys_unseal_password_auth()
267 primaryHandle, in test_esys_unseal_password_auth()
298 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_unseal_password_auth()
301 primaryHandle = ESYS_TR_NONE; in test_esys_unseal_password_auth()
326 if (primaryHandle != ESYS_TR_NONE) { in test_esys_unseal_password_auth()
327 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_unseal_password_auth()
Desys-hmac.int.c41 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_hmac() local
89 &primaryHandle, &outPublic, &creationData, in test_esys_hmac()
93 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_hmac()
101 primaryHandle, in test_esys_hmac()
110 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_hmac()
122 if (primaryHandle != ESYS_TR_NONE) { in test_esys_hmac()
123 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_hmac()
Desys-hierarchychangeauth.int.c42 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_hierarchychangeauth() local
131 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_hierarchychangeauth()
136 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_hierarchychangeauth()
139 primaryHandle = ESYS_TR_NONE; in test_esys_hierarchychangeauth()
153 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_hierarchychangeauth()
158 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_hierarchychangeauth()
177 if (primaryHandle != ESYS_TR_NONE) { in test_esys_hierarchychangeauth()
178 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_hierarchychangeauth()
Desys-verify-signature.int.c39 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_verify_signature() local
127 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_verify_signature()
137 primaryHandle, in test_esys_verify_signature()
166 primaryHandle, in test_esys_verify_signature()
178 primaryHandle, in test_esys_verify_signature()
187 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_verify_signature()
200 if (primaryHandle != ESYS_TR_NONE) { in test_esys_verify_signature()
201 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_verify_signature()
Desys-create-password-auth.int.c46 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_create_password_auth() local
175 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_create_password_auth()
180 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_create_password_auth()
187 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_create_password_auth()
272 primaryHandle, in test_esys_create_password_auth()
286 primaryHandle, in test_esys_create_password_auth()
315 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_create_password_auth()
316 primaryHandle = ESYS_TR_NONE; in test_esys_create_password_auth()
342 if (primaryHandle != ESYS_TR_NONE) { in test_esys_create_password_auth()
343 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_create_password_auth()
Desys-object-changeauth.int.c41 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_object_changeauth() local
124 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_object_changeauth()
129 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_object_changeauth()
200 primaryHandle, in test_esys_object_changeauth()
212 primaryHandle, in test_esys_object_changeauth()
227 primaryHandle, in test_esys_object_changeauth()
239 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_object_changeauth()
264 if (primaryHandle != ESYS_TR_NONE) { in test_esys_object_changeauth()
265 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_object_changeauth()
Desys-tr-fromTpmPublic-key.int.c40 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_tr_fromTpmPublic_key() local
112 &primaryHandle, NULL, NULL, NULL, NULL); in test_esys_tr_fromTpmPublic_key()
115 r = Esys_ReadPublic(ectx, primaryHandle, in test_esys_tr_fromTpmPublic_key()
120 r = Esys_EvictControl(ectx, ESYS_TR_RH_OWNER, primaryHandle, in test_esys_tr_fromTpmPublic_key()
125 r = Esys_FlushContext(ectx, primaryHandle); in test_esys_tr_fromTpmPublic_key()
170 if (primaryHandle != ESYS_TR_NONE) { in test_esys_tr_fromTpmPublic_key()
171 if (Esys_FlushContext(ectx, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_tr_fromTpmPublic_key()
Desys-save-and-load-context.int.c48 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_save_and_load_context() local
180 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_save_and_load_context()
185 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_save_and_load_context()
192 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_save_and_load_context()
277 primaryHandle, in test_esys_save_and_load_context()
291 primaryHandle, in test_esys_save_and_load_context()
331 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_save_and_load_context()
334 primaryHandle = ESYS_TR_NONE; in test_esys_save_and_load_context()
367 if (primaryHandle != ESYS_TR_NONE) { in test_esys_save_and_load_context()
368 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_save_and_load_context()
Desys-create-fail.int.c43 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_create_fail() local
171 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_create_fail()
176 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_create_fail()
183 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_create_fail()
187 primaryHandle, in test_esys_create_fail()
208 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_create_fail()
291 if (primaryHandle != ESYS_TR_NONE) { in test_esys_create_fail()
292 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_create_fail()
Desys-make-credential.int.c51 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_make_credential() local
199 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_make_credential()
204 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_make_credential()
211 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_make_credential()
282 primaryHandle, in test_esys_make_credential()
306 primaryHandle, in test_esys_make_credential()
337 primaryHandle, in test_esys_make_credential()
353 primaryHandle, in test_esys_make_credential()
373 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_make_credential()
431 if (primaryHandle != ESYS_TR_NONE) { in test_esys_make_credential()
[all …]
Desys-hierarchy-control.int.c46 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_hierarchy_control() local
131 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_hierarchy_control()
151 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_hierarchy_control()
156 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_hierarchy_control()
167 if (primaryHandle != ESYS_TR_NONE) { in test_esys_hierarchy_control()
168 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_hierarchy_control()
Desys-encrypt-decrypt.int.c44 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_encrypt_decrypt() local
136 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_encrypt_decrypt()
141 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_encrypt_decrypt()
201 primaryHandle, in test_esys_encrypt_decrypt()
221 primaryHandle, in test_esys_encrypt_decrypt()
300 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_encrypt_decrypt()
303 primaryHandle = ESYS_TR_NONE; in test_esys_encrypt_decrypt()
326 if (primaryHandle != ESYS_TR_NONE) { in test_esys_encrypt_decrypt()
327 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_encrypt_decrypt()
Desys-evict-control-serialization.int.c44 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_evict_control_serialization() local
132 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_evict_control_serialization()
137 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_evict_control_serialization()
144 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_evict_control_serialization()
150 r = Esys_EvictControl(esys_context, ESYS_TR_RH_OWNER, primaryHandle, in test_esys_evict_control_serialization()
249 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_evict_control_serialization()
279 if (primaryHandle != ESYS_TR_NONE) { in test_esys_evict_control_serialization()
280 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_evict_control_serialization()
Desys-hmacsequencestart.int.c43 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_hmacsequencestart() local
121 &primaryHandle, &outPublic, &creationData, in test_esys_hmacsequencestart()
125 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_hmacsequencestart()
132 primaryHandle, in test_esys_hmacsequencestart()
202 primaryHandle, in test_esys_hmacsequencestart()
245 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_hmacsequencestart()
263 if (primaryHandle != ESYS_TR_NONE) { in test_esys_hmacsequencestart()
264 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_hmacsequencestart()
Desys-duplicate.int.c53 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_duplicate() local
205 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_duplicate()
223 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_duplicate()
230 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_duplicate()
301 primaryHandle, in test_esys_duplicate()
315 primaryHandle, in test_esys_duplicate()
399 primaryHandle, in test_esys_duplicate()
417 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_duplicate()
420 primaryHandle = ESYS_TR_NONE; in test_esys_duplicate()
478 if (primaryHandle != ESYS_TR_NONE) { in test_esys_duplicate()
[all …]
Desys-create-policy-auth.int.c42 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_create_policy_auth() local
176 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_create_policy_auth()
182 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_create_policy_auth()
255 r = Esys_Create(esys_context, primaryHandle, policyHandle, ESYS_TR_NONE, in test_esys_create_policy_auth()
266 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_create_policy_auth()
267 primaryHandle = ESYS_TR_NONE; in test_esys_create_policy_auth()
290 if (primaryHandle != ESYS_TR_NONE) { in test_esys_create_policy_auth()
291 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_create_policy_auth()
Desys-createloaded.int.c78 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_createloaded() local
180 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_createloaded()
185 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_createloaded()
250 primaryHandle, in test_esys_createloaded()
279 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_createloaded()
282 primaryHandle = ESYS_TR_NONE; in test_esys_createloaded()
318 if (primaryHandle != ESYS_TR_NONE) { in test_esys_createloaded()
319 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_createloaded()
Desys-import.int.c51 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_import() local
202 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_import()
220 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_import()
227 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_import()
298 primaryHandle, in test_esys_import()
312 primaryHandle, in test_esys_import()
413 primaryHandle, in test_esys_import()
425 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_import()
428 primaryHandle = ESYS_TR_NONE; in test_esys_import()
484 if (primaryHandle != ESYS_TR_NONE) { in test_esys_import()
[all …]
Desys-policy-ticket.int.c49 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_policy_ticket() local
143 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_policy_ticket()
153 primaryHandle, in test_esys_policy_ticket()
251 primaryHandle, in test_esys_policy_ticket()
263 primaryHandle, in test_esys_policy_ticket()
341 primaryHandle, in test_esys_policy_ticket()
359 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_policy_ticket()
388 if (primaryHandle != ESYS_TR_NONE) { in test_esys_policy_ticket()
389 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_policy_ticket()
Desys-tr-getTpmHandle-key.int.c37 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_tr_toTpmPublic_key() local
108 &primaryHandle, NULL, NULL, NULL, NULL); in test_esys_tr_toTpmPublic_key()
113 r = Esys_TR_GetTpmHandle(ectx, primaryHandle, &tpmHandle); in test_esys_tr_toTpmPublic_key()
122 r = Esys_EvictControl(ectx, ESYS_TR_RH_OWNER, primaryHandle, in test_esys_tr_toTpmPublic_key()
139 r = Esys_FlushContext(ectx, primaryHandle); in test_esys_tr_toTpmPublic_key()
Desys-create-session-auth.int.c54 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_create_session_auth() local
190 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_create_session_auth()
195 r = esys_GetResourceObject(esys_context, primaryHandle, in test_esys_create_session_auth()
202 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_create_session_auth()
217 primaryHandle_AuthSession = primaryHandle; in test_esys_create_session_auth()
385 primaryHandle, in test_esys_create_session_auth()
399 primaryHandle, in test_esys_create_session_auth()
428 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_create_session_auth()
470 if (primaryHandle != ESYS_TR_NONE) { in test_esys_create_session_auth()
471 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_create_session_auth()
Desys-policy-authorize.int.c40 ESYS_TR primaryHandle = ESYS_TR_NONE; in test_esys_policy_authorize() local
127 &outsideInfo, &creationPCR, &primaryHandle, in test_esys_policy_authorize()
165 primaryHandle, in test_esys_policy_authorize()
199 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_policy_authorize()
220 if (primaryHandle != ESYS_TR_NONE) { in test_esys_policy_authorize()
221 if (Esys_FlushContext(esys_context, primaryHandle) != TSS2_RC_SUCCESS) { in test_esys_policy_authorize()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Hierarchy/
DCreatePrimary.c108 &HierarchyGetPrimarySeed(in->primaryHandle)->b, in TPM2_CreatePrimary()
115 if(in->primaryHandle == TPM_RH_ENDORSEMENT) in TPM2_CreatePrimary()
130 FillInCreationData(in->primaryHandle, publicArea->nameAlg, in TPM2_CreatePrimary()
135 TicketComputeCreation(EntityGetHierarchy(in->primaryHandle), &out->name, in TPM2_CreatePrimary()
139 ObjectSetLoadedAttributes(newObject, in->primaryHandle); in TPM2_CreatePrimary()

12