Lines Matching refs:tpm_ctx
38 Tpm2Ctx* tpm_ctx = NULL; in Tpm2CreateContext() local
46 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()
76 memset(tpm_ctx->commit_data, 0, sizeof(tpm_ctx->commit_data)); in Tpm2CreateContext()
78 *ctx = tpm_ctx; in Tpm2CreateContext()
83 Tpm2DeleteContext(&tpm_ctx); in Tpm2CreateContext()