/external/tpm2-tss/test/unit/ |
D | esys-sequence-finish.c | 67 ESYS_CONTEXT *esys_context; in esys_unit_setup() local 76 r = Esys_Initialize(&esys_context, (TSS2_TCTI_CONTEXT *) tcti, NULL); in esys_unit_setup() 78 *state = (void *)esys_context; in esys_unit_setup() 89 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in esys_unit_teardown() local 91 r = Esys_GetTcti(esys_context, &tcti); in esys_unit_teardown() 93 Esys_Finalize(&esys_context); in esys_unit_teardown() 102 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in check_Startup() local 108 esys_context->state = esys_states[i]; in check_Startup() 109 r = Esys_Startup_Finish(esys_context); in check_Startup() 118 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in check_Shutdown() local [all …]
|
D | esys-tcti-rcs.c | 355 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_Startup() local 356 Esys_GetTcti(esys_context, &tcti); in test_Startup() 359 r = Esys_Startup(esys_context, startupType); in test_Startup() 369 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_Shutdown() local 370 Esys_GetTcti(esys_context, &tcti); in test_Shutdown() 373 r = Esys_Shutdown(esys_context, in test_Shutdown() 384 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_SelfTest() local 385 Esys_GetTcti(esys_context, &tcti); in test_SelfTest() 387 r = Esys_SelfTest(esys_context, in test_SelfTest() 397 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_IncrementalSelfTest() local [all …]
|
D | esys-tpm-rcs.c | 335 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_Startup() local 336 Esys_GetTcti(esys_context, &tcti); in test_Startup() 339 r = Esys_Startup(esys_context, startupType); in test_Startup() 349 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_Shutdown() local 350 Esys_GetTcti(esys_context, &tcti); in test_Shutdown() 353 r = Esys_Shutdown(esys_context, in test_Shutdown() 364 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_SelfTest() local 365 Esys_GetTcti(esys_context, &tcti); in test_SelfTest() 367 r = Esys_SelfTest(esys_context, in test_SelfTest() 377 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_IncrementalSelfTest() local [all …]
|
D | esys-resubmissions.c | 355 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_Startup() local 356 Esys_GetTcti(esys_context, &tcti); in test_Startup() 360 r = Esys_Startup(esys_context, startupType); in test_Startup() 371 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_Shutdown() local 372 Esys_GetTcti(esys_context, &tcti); in test_Shutdown() 376 r = Esys_Shutdown(esys_context, in test_Shutdown() 388 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_SelfTest() local 389 Esys_GetTcti(esys_context, &tcti); in test_SelfTest() 392 r = Esys_SelfTest(esys_context, in test_SelfTest() 403 ESYS_CONTEXT *esys_context = (ESYS_CONTEXT *) * state; in test_IncrementalSelfTest() local [all …]
|
/external/tpm2-tss/src/tss2-esys/ |
D | esys_context.c | 43 Esys_Initialize(ESYS_CONTEXT ** esys_context, TSS2_TCTI_CONTEXT * tcti, in Esys_Initialize() argument 49 _ESYS_ASSERT_NON_NULL(esys_context); in Esys_Initialize() 50 *esys_context = NULL; in Esys_Initialize() 54 *esys_context = calloc(1, sizeof(ESYS_CONTEXT)); in Esys_Initialize() 55 return_if_null(*esys_context, "Out of memory.", TSS2_ESYS_RC_MEMORY); in Esys_Initialize() 59 (*esys_context)->sys = calloc(1, syssize); in Esys_Initialize() 60 goto_if_null((*esys_context)->sys, "Error: During malloc.", in Esys_Initialize() 64 (*esys_context)->tcti_app_param = tcti; in Esys_Initialize() 73 r = Tss2_Sys_Initialize((*esys_context)->sys, syssize, tcti, abiVersion); in Esys_Initialize() 78 (*esys_context)->esys_handle_cnt = ESYS_TR_MIN_OBJECT + (rand() % 6000000); in Esys_Initialize() [all …]
|
D | esys_tr.c | 38 Esys_TR_Serialize(ESYS_CONTEXT * esys_context, in Esys_TR_Serialize() argument 46 r = esys_GetResourceObject(esys_context, esys_handle, &esys_object); in Esys_TR_Serialize() 81 Esys_TR_Deserialize(ESYS_CONTEXT * esys_context, in Esys_TR_Deserialize() argument 90 _ESYS_ASSERT_NON_NULL(esys_context); in Esys_TR_Deserialize() 91 *esys_handle = esys_context->esys_handle_cnt++; in Esys_TR_Deserialize() 92 r = esys_CreateResourceObject(esys_context, *esys_handle, &esys_object); in Esys_TR_Deserialize() 128 Esys_TR_FromTPMPublic_Async(ESYS_CONTEXT * esys_context, in Esys_TR_FromTPMPublic_Async() argument 134 _ESYS_ASSERT_NON_NULL(esys_context); in Esys_TR_FromTPMPublic_Async() 135 ESYS_TR esys_handle = esys_context->esys_handle_cnt++; in Esys_TR_FromTPMPublic_Async() 137 r = esys_CreateResourceObject(esys_context, esys_handle, &esysHandleNode); in Esys_TR_FromTPMPublic_Async() [all …]
|
D | esys_iutil.c | 115 init_session_tab(ESYS_CONTEXT *esys_context, in init_session_tab() argument 121 esys_context->session_type[i] = handle_tab[i]; in init_session_tab() 123 esys_context->session_tab[i] = NULL; in init_session_tab() 125 r = esys_GetResourceObject(esys_context, handle_tab[i], in init_session_tab() 126 &esys_context->session_tab[i]); in init_session_tab() 129 if (esys_context->session_tab[i]->rsrc.rsrcType != IESYSC_SESSION_RSRC) { in init_session_tab() 145 iesys_DeleteAllResourceObjects(ESYS_CONTEXT * esys_context) in iesys_DeleteAllResourceObjects() argument 149 for (node_rsrc = esys_context->rsrc_list; node_rsrc != NULL; in iesys_DeleteAllResourceObjects() 154 esys_context->rsrc_list = NULL; in iesys_DeleteAllResourceObjects() 168 iesys_compute_encrypt_nonce(ESYS_CONTEXT * esys_context, in iesys_compute_encrypt_nonce() argument [all …]
|
/external/tpm2-tss/test/integration/ |
D | esys-policy-regression.int.c | 28 cmp_policy_digest(ESYS_CONTEXT * esys_context, in cmp_policy_digest() argument 37 r = Esys_PolicyGetDigest(esys_context, in cmp_policy_digest() 56 r = Esys_FlushContext(esys_context, *session); in cmp_policy_digest() 95 test_esys_policy_regression(ESYS_CONTEXT * esys_context) in test_esys_policy_regression() argument 118 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_regression() 143 r = Esys_PolicyPCR(esys_context, in test_esys_policy_regression() 156 if (!cmp_policy_digest(esys_context, &sessionTrial, &expectedPolicyPCR, in test_esys_policy_regression() 186 r = Esys_NV_DefineSpace(esys_context, in test_esys_policy_regression() 197 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_regression() 213 r = Esys_PolicyNV(esys_context, in test_esys_policy_regression() [all …]
|
D | esys-policy-nv-changeauth.int.c | 46 test_esys_policy_nv_changeauth(ESYS_CONTEXT * esys_context) in test_esys_policy_nv_changeauth() argument 69 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_nv_changeauth() 76 r = Esys_PolicyAuthValue(esys_context, in test_esys_policy_nv_changeauth() 84 r = Esys_PolicyCommandCode(esys_context, in test_esys_policy_nv_changeauth() 93 r = Esys_PolicyGetDigest(esys_context, in test_esys_policy_nv_changeauth() 102 r = Esys_FlushContext(esys_context, sessionTrial); in test_esys_policy_nv_changeauth() 128 r = Esys_NV_DefineSpace(esys_context, in test_esys_policy_nv_changeauth() 153 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_nv_changeauth() 161 r = Esys_PolicyAuthValue(esys_context, in test_esys_policy_nv_changeauth() 169 r = Esys_PolicyCommandCode(esys_context, in test_esys_policy_nv_changeauth() [all …]
|
D | esys-tpm-clear-auth.int.c | 35 test_esys_clear_auth(ESYS_CONTEXT * esys_context) in test_esys_clear_auth() argument 48 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_clear_auth() 61 r = Esys_HierarchyChangeAuth(esys_context, ESYS_TR_RH_LOCKOUT, in test_esys_clear_auth() 66 Esys_TR_SetAuth(esys_context, ESYS_TR_RH_LOCKOUT, &auth); in test_esys_clear_auth() 69 r = Esys_Clear(esys_context, ESYS_TR_RH_LOCKOUT, session, in test_esys_clear_auth() 73 r = Esys_FlushContext(esys_context, session); in test_esys_clear_auth() 79 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_clear_auth() 87 r = Esys_HierarchyChangeAuth(esys_context, ESYS_TR_RH_PLATFORM, in test_esys_clear_auth() 100 Esys_TR_SetAuth(esys_context, ESYS_TR_RH_PLATFORM, &auth); in test_esys_clear_auth() 103 r = Esys_Clear(esys_context, ESYS_TR_RH_PLATFORM, session, in test_esys_clear_auth() [all …]
|
D | esys-policy-nv-undefine-special.int.c | 46 test_esys_policy_nv_undefine_special(ESYS_CONTEXT * esys_context) in test_esys_policy_nv_undefine_special() argument 71 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_nv_undefine_special() 78 r = Esys_PolicyAuthValue(esys_context, in test_esys_policy_nv_undefine_special() 86 r = Esys_PolicyCommandCode(esys_context, in test_esys_policy_nv_undefine_special() 95 r = Esys_PolicyGetDigest(esys_context, in test_esys_policy_nv_undefine_special() 128 r = Esys_NV_DefineSpace(esys_context, in test_esys_policy_nv_undefine_special() 158 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_nv_undefine_special() 168 r = Esys_TRSess_SetAttributes(esys_context, session, sessionAttributes, 0xFF); in test_esys_policy_nv_undefine_special() 171 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_nv_undefine_special() 178 r = Esys_PolicyAuthValue(esys_context, in test_esys_policy_nv_undefine_special() [all …]
|
D | esys-duplicate.int.c | 50 test_esys_duplicate(ESYS_CONTEXT * esys_context) in test_esys_duplicate() argument 97 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_duplicate() 104 r = Esys_PolicyAuthValue(esys_context, in test_esys_duplicate() 112 r = Esys_PolicyCommandCode(esys_context, in test_esys_duplicate() 121 r = Esys_PolicyGetDigest(esys_context, in test_esys_duplicate() 197 r = Esys_TR_SetAuth(esys_context, ESYS_TR_RH_OWNER, &authValue); in test_esys_duplicate() 202 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, in test_esys_duplicate() 215 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, 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() [all …]
|
D | esys-nv-ram-ordinary-index.int.c | 48 test_esys_nv_ram_ordinary_index(ESYS_CONTEXT * esys_context) in test_esys_nv_ram_ordinary_index() argument 72 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_nv_ram_ordinary_index() 106 r = Esys_NV_DefineSpace(esys_context, in test_esys_nv_ram_ordinary_index() 126 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_ordinary_index() 137 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_ordinary_index() 145 r = Esys_NV_Write(esys_context, in test_esys_nv_ram_ordinary_index() 163 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_ordinary_index() 172 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_ordinary_index() 181 r = Esys_NV_Read(esys_context, in test_esys_nv_ram_ordinary_index() 201 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_ordinary_index() [all …]
|
D | esys-get-random.int.c | 31 test_esys_get_random(ESYS_CONTEXT * esys_context) in test_esys_get_random() argument 37 r = Esys_GetRandom(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_get_random() 57 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_get_random() 67 r = Esys_TRSess_SetAttributes(esys_context, session, TPMA_SESSION_AUDIT, in test_esys_get_random() 74 r = Esys_GetRandom(esys_context, session, ESYS_TR_NONE, ESYS_TR_NONE, 48, in test_esys_get_random() 85 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_get_random() 95 r = Esys_TRSess_SetAttributes(esys_context, session, TPMA_SESSION_AUDIT, in test_esys_get_random() 102 r = Esys_GetRandom(esys_context, session, ESYS_TR_NONE, ESYS_TR_NONE, 48, in test_esys_get_random() 113 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_get_random() 123 r = Esys_TRSess_SetAttributes(esys_context, session, TPMA_SESSION_AUDIT, in test_esys_get_random() [all …]
|
D | esys-create-session-auth.int.c | 51 test_esys_create_session_auth(ESYS_CONTEXT * esys_context) in test_esys_create_session_auth() argument 183 r = Esys_TR_SetAuth(esys_context, ESYS_TR_RH_OWNER, &authValue); in test_esys_create_session_auth() 188 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, 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() 207 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, in test_esys_create_session_auth() 214 r = Esys_TR_SetAuth(esys_context, primaryHandle_AuthSession, &authValuePrimary); in test_esys_create_session_auth() 240 r = Esys_StartAuthSession(esys_context, in test_esys_create_session_auth() 248 r = Esys_TRSess_SetAttributes(esys_context, outerSession, TPMA_SESSION_AUDIT, in test_esys_create_session_auth() 252 r = Esys_StartAuthSession(esys_context, in test_esys_create_session_auth() [all …]
|
D | esys-import.int.c | 48 test_esys_import(ESYS_CONTEXT * esys_context) in test_esys_import() argument 94 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_import() 101 r = Esys_PolicyAuthValue(esys_context, in test_esys_import() 109 r = Esys_PolicyCommandCode(esys_context, in test_esys_import() 118 r = Esys_PolicyGetDigest(esys_context, in test_esys_import() 194 r = Esys_TR_SetAuth(esys_context, ESYS_TR_RH_OWNER, &authValue); in test_esys_import() 199 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, in test_esys_import() 212 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, 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() [all …]
|
D | esys-policy-ticket.int.c | 46 test_esys_policy_ticket(ESYS_CONTEXT * esys_context) in test_esys_policy_ticket() argument 137 r = Esys_TR_SetAuth(esys_context, ESYS_TR_RH_OWNER, &authValue); in test_esys_policy_ticket() 140 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, in test_esys_policy_ticket() 152 r = Esys_ReadPublic(esys_context, in test_esys_policy_ticket() 187 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_ticket() 197 r = Esys_TRSess_GetNonceTPM(esys_context, session, &nonceTPM); in test_esys_policy_ticket() 206 r = Esys_HashSequenceStart(esys_context, in test_esys_policy_ticket() 216 r = Esys_TR_SetAuth(esys_context, sequenceHandle_handle, &auth); in test_esys_policy_ticket() 219 r = Esys_SequenceUpdate(esys_context, in test_esys_policy_ticket() 228 r = Esys_SequenceComplete(esys_context, in test_esys_policy_ticket() [all …]
|
D | esys-make-credential.int.c | 48 test_esys_make_credential(ESYS_CONTEXT * esys_context) in test_esys_make_credential() argument 92 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_make_credential() 99 r = esys_GetResourceObject(esys_context, session, in test_esys_make_credential() 108 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_make_credential() 115 r = esys_GetResourceObject(esys_context, session2, in test_esys_make_credential() 192 r = Esys_TR_SetAuth(esys_context, ESYS_TR_RH_OWNER, &authValue); in test_esys_make_credential() 197 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, 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() 281 r = Esys_Create(esys_context, in test_esys_make_credential() [all …]
|
D | esys-nv-ram-set-bits.int.c | 40 test_esys_nv_ram_set_bits(ESYS_CONTEXT * esys_context) in test_esys_nv_ram_set_bits() argument 64 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_nv_ram_set_bits() 97 r = Esys_NV_DefineSpace(esys_context, in test_esys_nv_ram_set_bits() 112 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_set_bits() 123 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_set_bits() 134 r = Esys_NV_SetBits(esys_context, in test_esys_nv_ram_set_bits() 150 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_set_bits() 159 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_set_bits() 168 r = Esys_NV_Read(esys_context, in test_esys_nv_ram_set_bits() 187 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_set_bits() [all …]
|
D | esys-nv-ram-counter.int.c | 40 test_esys_nv_ram_counter(ESYS_CONTEXT * esys_context) in test_esys_nv_ram_counter() argument 65 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_nv_ram_counter() 98 r = Esys_NV_DefineSpace(esys_context, in test_esys_nv_ram_counter() 113 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_counter() 124 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_counter() 132 r = Esys_NV_Increment(esys_context, in test_esys_nv_ram_counter() 148 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_counter() 157 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_counter() 169 r = Esys_NV_Read(esys_context, in test_esys_nv_ram_counter() 185 r = Esys_NV_ReadPublic(esys_context, in test_esys_nv_ram_counter() [all …]
|
D | esys-hmacsequencestart.int.c | 40 test_esys_hmacsequencestart(ESYS_CONTEXT * esys_context) in test_esys_hmacsequencestart() argument 68 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_hmacsequencestart() 118 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, in test_esys_hmacsequencestart() 125 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_hmacsequencestart() 131 r = Esys_HMAC_Start(esys_context, in test_esys_hmacsequencestart() 149 r = Esys_TR_SetAuth(esys_context, sequenceHandle, &auth); in test_esys_hmacsequencestart() 152 r = Esys_SequenceUpdate(esys_context, in test_esys_hmacsequencestart() 165 r = Esys_SequenceComplete(esys_context, in test_esys_hmacsequencestart() 182 r = Esys_FlushContext(esys_context, session); in test_esys_hmacsequencestart() 192 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_hmacsequencestart() [all …]
|
D | esys-policy-authorize-nv-opt.int.c | 30 cmp_policy_digest(ESYS_CONTEXT * esys_context, in cmp_policy_digest() argument 39 r = Esys_PolicyGetDigest(esys_context, in cmp_policy_digest() 58 r = Esys_FlushContext(esys_context, *session); in cmp_policy_digest() 86 test_esys_policy_authorize_nv_opt(ESYS_CONTEXT * esys_context) in test_esys_policy_authorize_nv_opt() argument 130 r = Esys_NV_DefineSpace(esys_context, in test_esys_policy_authorize_nv_opt() 141 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_policy_authorize_nv_opt() 156 r = Esys_PolicyNV(esys_context, in test_esys_policy_authorize_nv_opt() 170 if (!cmp_policy_digest(esys_context, &sessionTrial, &expectedPolicyNV, in test_esys_policy_authorize_nv_opt() 177 r = Esys_PolicyAuthorizeNV(esys_context, in test_esys_policy_authorize_nv_opt() 197 r = Esys_NV_UndefineSpace(esys_context, in test_esys_policy_authorize_nv_opt() [all …]
|
D | esys-auto-session-flags.int.c | 34 test_esys_auto_flags(ESYS_CONTEXT * esys_context) in test_esys_auto_flags() argument 54 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_auto_flags() 62 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_auto_flags() 74 r = Esys_TRSess_SetAttributes(esys_context, session_enc, sessionAttributes, 0xFF); in test_esys_auto_flags() 103 esys_context, in test_esys_auto_flags() 121 esys_context, in test_esys_auto_flags() 133 r = Esys_TRSess_GetAttributes(esys_context, session_enc, in test_esys_auto_flags() 149 esys_context, in test_esys_auto_flags() 160 r = Esys_TRSess_GetAttributes(esys_context, session_enc, in test_esys_auto_flags() 175 if (Esys_NV_UndefineSpace(esys_context, in test_esys_auto_flags() [all …]
|
D | esys-nv-ram-extend-index.int.c | 42 test_esys_nv_ram_extend_index(ESYS_CONTEXT * esys_context) in test_esys_nv_ram_extend_index() argument 67 r = Esys_StartAuthSession(esys_context, ESYS_TR_NONE, ESYS_TR_NONE, in test_esys_nv_ram_extend_index() 101 esys_context, in test_esys_nv_ram_extend_index() 121 esys_context, in test_esys_nv_ram_extend_index() 132 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_extend_index() 141 esys_context, in test_esys_nv_ram_extend_index() 158 esys_context, in test_esys_nv_ram_extend_index() 167 r = esys_GetResourceObject(esys_context, nvHandle, &nvHandleNode); in test_esys_nv_ram_extend_index() 177 esys_context, in test_esys_nv_ram_extend_index() 197 esys_context, in test_esys_nv_ram_extend_index() [all …]
|
D | esys-object-changeauth.int.c | 38 test_esys_object_changeauth(ESYS_CONTEXT * esys_context) in test_esys_object_changeauth() argument 119 r = Esys_TR_SetAuth(esys_context, ESYS_TR_RH_OWNER, &authValue); in test_esys_object_changeauth() 122 r = Esys_CreatePrimary(esys_context, ESYS_TR_RH_OWNER, ESYS_TR_PASSWORD, in test_esys_object_changeauth() 129 r = Esys_TR_SetAuth(esys_context, primaryHandle, &authValuePrimary); in test_esys_object_changeauth() 199 r = Esys_Create(esys_context, in test_esys_object_changeauth() 211 r = Esys_Load(esys_context, in test_esys_object_changeauth() 218 r = Esys_TR_SetAuth(esys_context, loadedKeyHandle, &authKey2); in test_esys_object_changeauth() 225 r = Esys_ObjectChangeAuth(esys_context, in test_esys_object_changeauth() 236 r = Esys_FlushContext(esys_context, loadedKeyHandle); in test_esys_object_changeauth() 239 r = Esys_FlushContext(esys_context, primaryHandle); in test_esys_object_changeauth() [all …]
|