Home
last modified time | relevance | path

Searched refs:tpm2_ctx (Results 1 – 13 of 13) sorted by relevance

/external/epid-sdk/epid/member/src/
Dcontext.c83 &ctx->rnd_param, &f, &ctx->tpm2_ctx); in EpidMemberInit()
117 sts = Tpm2SetHashAlg(ctx->tpm2_ctx, ctx->hash_alg); in EpidMemberInit()
139 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, (buf++)->rf_ctr); in EpidMemberDeinit()
141 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, ctx->join_ctr); in EpidMemberDeinit()
142 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, ctx->rf_ctr); in EpidMemberDeinit()
143 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, ctx->rnu_ctr); in EpidMemberDeinit()
155 Tpm2DeleteContext(&ctx->tpm2_ctx); in EpidMemberDeinit()
196 sts = Tpm2LoadExternal(ctx->tpm2_ctx, ctx->f); in EpidMemberInitialProvision()
200 sts = Tpm2CreatePrimary(ctx->tpm2_ctx, &f); in EpidMemberInitialProvision()
229 sts = Tpm2SetHashAlg(ctx->tpm2_ctx, hash_alg); in EpidMemberSetHashAlg()
Dprovision_bulk.c49 sts = Tpm2LoadExternal(ctx->tpm2_ctx, &priv_key->f); in EpidProvisionKey()
59 Tpm2ResetContext(&ctx->tpm2_ctx); in EpidProvisionKey()
62 sts = Tpm2LoadExternal(ctx->tpm2_ctx, &priv_key->f); in EpidProvisionKey()
68 sts = EpidNvWriteMembershipCredential(ctx->tpm2_ctx, pub_key, &credential, in EpidProvisionKey()
Dprovision_join.c57 sts = EpidNvWriteMembershipCredential(ctx->tpm2_ctx, pub_key, credential, in EpidProvisionCredential()
61 Tpm2ResetContext(&ctx->tpm2_ctx); in EpidProvisionCredential()
64 sts = Tpm2CreatePrimary(ctx->tpm2_ctx, &f_str); in EpidProvisionCredential()
Dprivateexp.c89 Tpm2Commit(ctx->tpm2_ctx, a, NULL, 0, NULL, k_pt, l_pt, e_pt, &counter); in EpidPrivateExp()
98 sts = Tpm2Sign(ctx->tpm2_ctx, digest, digest_len, counter, k, s); in EpidPrivateExp()
127 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, counter); in EpidPrivateExp()
Djoin.c102 Tpm2Commit(ctx->tpm2_ctx, h1, NULL, 0, NULL, K, l, e, &(ctx->join_ctr)); in EpidCreateJoinRequest()
126 sts = Tpm2Sign(ctx->tpm2_ctx, digest, digest_size, ctx->join_ctr, k, s); in EpidCreateJoinRequest()
138 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, ctx->join_ctr); in EpidCreateJoinRequest()
Dsignbasic.c187 Tpm2Commit(ctx->tpm2_ctx, ctx->h1, p2x, sizeof(p2x->i) + basename_len, in EpidSignBasic()
280 sts = Tpm2Sign(ctx->tpm2_ctx, digest, digest_size, *rf_ctr, NULL, t3); in EpidSignBasic()
310 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, (uint16_t)ctx->rf_ctr); in EpidSignBasic()
311 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, curr_presig.rf_ctr); in EpidSignBasic()
313 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, curr_presig.rf_ctr); in EpidSignBasic()
Dcontext.h43 Tpm2Ctx* tpm2_ctx; ///< TPM2 context member
Dpresig.c122 Tpm2Ctx* tpm = ctx->tpm2_ctx; in MemberComputePreSig()
275 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, precompsig->rf_ctr); in MemberComputePreSig()
Dnrprove.c194 sts = Tpm2Commit(ctx->tpm2_ctx, rlB, s2, basename_len + sizeof(i), y2, in EpidNrProve()
251 sts = Tpm2Sign(ctx->tpm2_ctx, digest, digest_len, rnu_ctr, NULL, t2); in EpidNrProve()
Dstartup.c57 sts = EpidNvReadMembershipCredential(ctx->tpm2_ctx, nv_index, &ctx->pub_key, in EpidMemberStartup()
/external/epid-sdk/epid/member/unittests/
Dprovision_key-test.cc239 EpidNvReadMembershipCredential(((MemberCtx*)member)->tpm2_ctx, in TEST_F()
Dprovision_credential-test.cc313 EpidNvReadMembershipCredential(((MemberCtx*)member)->tpm2_ctx, in TEST_F()
Dcontext-test.cc617 Tpm2NvUndefineSpace(((MemberCtx*)member)->tpm2_ctx, nv_index); in TEST_F()