Lines Matching +full:- +full:nv
8 # http://www.apache.org/licenses/LICENSE-2.0
54 if (params->f) { in Tpm2CreateContext()
55 FiniteField* Fp = epid2_params->Fp; in Tpm2CreateContext()
59 sts = ReadFfElement(Fp, params->f, sizeof(*params->f), ff_elem); 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()
66 *rnd_func = params->rnd_func; in Tpm2CreateContext()
67 *rnd_param = params->rnd_param; in Tpm2CreateContext()
68 *f = params->f; 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()
92 (*ctx)->rnd_param = NULL; in Tpm2DeleteContext()
93 DeleteFfElement(&(*ctx)->f); in Tpm2DeleteContext()
95 DeleteFfElement(&(*ctx)->commit_data[i]); in Tpm2DeleteContext()
98 (*ctx)->nv->nv_index = 0; in Tpm2DeleteContext()
99 SAFE_FREE((*ctx)->nv->data); in Tpm2DeleteContext()
100 (*ctx)->nv->data_size = 0; in Tpm2DeleteContext()
111 ctx->hash_alg = hash_alg; in Tpm2SetHashAlg()
117 DeleteFfElement(&(*ctx)->f); in Tpm2ResetContext()