Searched refs:tpm_ctx (Results 1 – 2 of 2) sorted by relevance
38 Tpm2Ctx* tpm_ctx = NULL; in Tpm2CreateContext() local46 tpm_ctx = SAFE_ALLOC(sizeof(Tpm2Ctx)); in Tpm2CreateContext()47 if (!tpm_ctx) { in Tpm2CreateContext()62 tpm_ctx->epid2_params = epid2_params; in Tpm2CreateContext()63 tpm_ctx->rnd_func = params->rnd_func; in Tpm2CreateContext()64 tpm_ctx->rnd_param = params->rnd_param; in Tpm2CreateContext()65 tpm_ctx->f = NULL; in Tpm2CreateContext()71 tpm_ctx->nv->nv_index = 0; in Tpm2CreateContext()72 tpm_ctx->nv->data = NULL; in Tpm2CreateContext()73 tpm_ctx->nv->data_size = 0; in Tpm2CreateContext()[all …]
62 Tpm2Ctx* tpm_ctx = NULL; in Tpm2CreateContext() local73 tpm_ctx = SAFE_ALLOC(sizeof(Tpm2Ctx)); in Tpm2CreateContext()74 if (!tpm_ctx) { in Tpm2CreateContext()88 tpm_ctx->epid2_params = epid2_params; in Tpm2CreateContext()89 tpm_ctx->key_handle = 0; in Tpm2CreateContext()90 tpm_ctx->hash_alg = kInvalidHashAlg; in Tpm2CreateContext()92 rc = TSS_Create(&tpm_ctx->tss); in Tpm2CreateContext()98 *ctx = tpm_ctx; in Tpm2CreateContext()106 Tpm2DeleteContext(&tpm_ctx); in Tpm2CreateContext()