Searched refs:tpm2_ctx (Results 1 – 13 of 13) sorted by relevance
/external/epid-sdk/epid/member/src/ |
D | context.c | 83 &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()
|
D | provision_bulk.c | 49 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()
|
D | provision_join.c | 57 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()
|
D | privateexp.c | 89 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()
|
D | join.c | 102 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()
|
D | signbasic.c | 187 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()
|
D | context.h | 43 Tpm2Ctx* tpm2_ctx; ///< TPM2 context member
|
D | presig.c | 122 Tpm2Ctx* tpm = ctx->tpm2_ctx; in MemberComputePreSig() 275 (void)Tpm2ReleaseCounter(ctx->tpm2_ctx, precompsig->rf_ctr); in MemberComputePreSig()
|
D | nrprove.c | 194 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()
|
D | startup.c | 57 sts = EpidNvReadMembershipCredential(ctx->tpm2_ctx, nv_index, &ctx->pub_key, in EpidMemberStartup()
|
/external/epid-sdk/epid/member/unittests/ |
D | provision_key-test.cc | 239 EpidNvReadMembershipCredential(((MemberCtx*)member)->tpm2_ctx, in TEST_F()
|
D | provision_credential-test.cc | 313 EpidNvReadMembershipCredential(((MemberCtx*)member)->tpm2_ctx, in TEST_F()
|
D | context-test.cc | 617 Tpm2NvUndefineSpace(((MemberCtx*)member)->tpm2_ctx, nv_index); in TEST_F()
|