/external/tpm2-tss/test/unit/ |
D | CopyCommandHeader.c | 28 _TSS2_SYS_CONTEXT_BLOB *sys_ctx; in CopyCommandHeader_sys_setup() local 32 sys_ctx = calloc (1, size_ctx); in CopyCommandHeader_sys_setup() 33 assert_non_null (sys_ctx); in CopyCommandHeader_sys_setup() 39 sys_ctx->cmdBuffer = (UINT8*) (sys_ctx + sizeof (_TSS2_SYS_CONTEXT_BLOB)); in CopyCommandHeader_sys_setup() 40 InitSysContextFields (sys_ctx); in CopyCommandHeader_sys_setup() 41 InitSysContextPtrs (sys_ctx, size_ctx); in CopyCommandHeader_sys_setup() 43 *state = sys_ctx; in CopyCommandHeader_sys_setup() 50 TSS2_SYS_CONTEXT *sys_ctx = (TSS2_SYS_CONTEXT*)*state; in CopyCommandHeader_sys_teardown() local 52 if (sys_ctx) in CopyCommandHeader_sys_teardown() 53 free (sys_ctx); in CopyCommandHeader_sys_teardown() [all …]
|
D | CommonPreparePrologue.c | 42 _TSS2_SYS_CONTEXT_BLOB *sys_ctx; in CommonPreparePrologue_sys_setup() local 46 sys_ctx = calloc (1, size_ctx); in CommonPreparePrologue_sys_setup() 47 assert_non_null (sys_ctx); in CommonPreparePrologue_sys_setup() 49 *state = sys_ctx; in CommonPreparePrologue_sys_setup() 56 _TSS2_SYS_CONTEXT_BLOB *sys_ctx = (_TSS2_SYS_CONTEXT_BLOB*)*state; in CommonPreparePrologue_sys_teardown() local 58 if (sys_ctx) in CommonPreparePrologue_sys_teardown() 59 free (sys_ctx); in CommonPreparePrologue_sys_teardown() 72 _TSS2_SYS_CONTEXT_BLOB *sys_ctx = (_TSS2_SYS_CONTEXT_BLOB*)*state; in CommonPreparePrologue_previous_stage_initialize() local 75 sys_ctx->previousStage |= ~CMD_STAGE_INITIALIZE; in CommonPreparePrologue_previous_stage_initialize() 76 rc = CommonPreparePrologue (sys_ctx, 0); in CommonPreparePrologue_previous_stage_initialize() [all …]
|
D | sys-execute.c | 112 TSS2_SYS_CONTEXT *sys_ctx; in setup() local 118 sys_ctx = calloc (1, size_ctx); in setup() 119 assert_non_null (sys_ctx); in setup() 124 r = Tss2_Sys_Initialize(sys_ctx, size_ctx, tcti_ctx, &ver); in setup() 127 *state = sys_ctx; in setup() 135 TSS2_SYS_CONTEXT *sys_ctx = (TSS2_SYS_CONTEXT *)*state; in teardown() local 137 if (sys_ctx) in teardown() 138 free (sys_ctx); in teardown() 147 TSS2_SYS_CONTEXT *sys_ctx = (TSS2_SYS_CONTEXT *)*state; in test_resubmit() local 150 r = Tss2_Sys_GetRandom_Prepare(sys_ctx, 32); in test_resubmit() [all …]
|
D | esys-crypto.c | 258 TSS2_SYS_CONTEXT *sys_ctx = NULL; in check_get_sys_context() local 271 rc = Esys_GetSysContext(ctx, &sys_ctx); in check_get_sys_context() 272 assert_ptr_not_equal(sys_ctx, NULL); in check_get_sys_context()
|
/external/tpm2-tss/test/integration/ |
D | sapi-nv-policy-locality.int.c | 47 create_policy_session (TSS2_SYS_CONTEXT *sys_ctx, in create_policy_session() argument 58 rc = Tss2_Sys_StartAuthSession (sys_ctx, in create_policy_session() 72 rc = Tss2_Sys_PolicyLocality (sys_ctx, in create_policy_session() 86 setup_nv (TSS2_SYS_CONTEXT *sys_ctx) in setup_nv() argument 112 rc = create_policy_session (sys_ctx, &auth_handle); in setup_nv() 115 rc = Tss2_Sys_PolicyGetDigest (sys_ctx, in setup_nv() 127 rc = Tss2_Sys_NV_DefineSpace (sys_ctx, in setup_nv() 133 Tss2_Sys_FlushContext (sys_ctx, auth_handle); in setup_nv() 140 teardown_nv (TSS2_SYS_CONTEXT *sys_ctx) in teardown_nv() argument 153 rc = Tss2_Sys_NV_UndefineSpace (sys_ctx, in teardown_nv() [all …]
|
D | sapi-nv-readwrite.int.c | 41 TSS2_SYS_CONTEXT *sys_ctx, in create_policy_session() argument 54 rc = Tss2_Sys_StartAuthSession (sys_ctx, in create_policy_session() 71 setup_nv (TSS2_SYS_CONTEXT *sys_ctx, in setup_nv() argument 91 rc = create_policy_session (sys_ctx, &auth_handle); in setup_nv() 94 rc = Tss2_Sys_PolicyGetDigest (sys_ctx, auth_handle, 0, &policy_hash, 0); in setup_nv() 98 rc = Tss2_Sys_NV_DefineSpace (sys_ctx, in setup_nv() 106 rc = Tss2_Sys_FlushContext (sys_ctx, auth_handle); in setup_nv() 113 nv_write_read_test (TSS2_SYS_CONTEXT *sys_ctx, in nv_write_read_test() argument 124 rc = TSS2_RETRY_EXP (Tss2_Sys_NV_Write (sys_ctx, in nv_write_read_test() 133 rc = Tss2_Sys_NV_Read (sys_ctx, in nv_write_read_test() [all …]
|
D | sapi-hmac-auth.int.c | 33 create_policy (TSS2_SYS_CONTEXT *sys_ctx, in create_policy() argument 45 rc = Tss2_Sys_GetTctiContext (sys_ctx, &tcti_ctx); in create_policy() 66 rc = Tss2_Sys_PolicyAuthValue (sys_ctx, in create_policy() 74 rc = Tss2_Sys_PolicyGetDigest (sys_ctx, in create_policy() 84 rc = Tss2_Sys_FlushContext (sys_ctx, in create_policy() 97 TSS2_SYS_CONTEXT *sys_ctx, in nv_rw_with_session() argument 144 rc = Tss2_Sys_GetTctiContext (sys_ctx, &tcti_ctx); in nv_rw_with_session() 150 rc = DefineNvIndex (sys_ctx, in nv_rw_with_session() 224 rc = Tss2_Sys_PolicyAuthValue (sys_ctx, in nv_rw_with_session() 234 rc = Tss2_Sys_NV_Write_Prepare (sys_ctx, in nv_rw_with_session() [all …]
|
D | sapi-util.h | 214 TSS2_SYS_CONTEXT *sys_ctx,
|
D | sapi-util.c | 657 TSS2_SYS_CONTEXT *sys_ctx, in DefineNvIndex() argument 692 return Tss2_Sys_NV_DefineSpace (sys_ctx, in DefineNvIndex()
|