Home
last modified time | relevance | path

Searched refs:priv_rl (Results 1 – 15 of 15) sorted by relevance

/external/epid-sdk/epid/verifier/unittests/
Dcheck_privrl_entry-test.cc38 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
42 FpElemStr fp_str = ((PrivRl const*)priv_rl.data())->f[0]; in TEST_F()
56 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
61 FpElemStr fp_str = ((PrivRl const*)priv_rl.data())->f[0]; in TEST_F()
73 auto& priv_rl = this->kPrivRlIkgf; in TEST_F() local
79 FpElemStr fp_str = ((PrivRl const*)priv_rl.data())->f[2]; in TEST_F()
89 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
94 FpElemStr fp_str = ((PrivRl const*)priv_rl.data())->f[0]; in TEST_F()
105 auto& priv_rl = this->kPrivRlIkgf; in TEST_F() local
110 FpElemStr fp_str = ((PrivRl const*)priv_rl.data())->f[0]; in TEST_F()
Dverify-test.cc529 auto& priv_rl = this->kGrpXPrivRlRevokedPrivKey000OnlyEntry; in TEST_F() local
536 verifier, (PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
553 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
560 verifier, (PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
577 auto& priv_rl = this->kPrivRlIkgf; in TEST_F() local
584 verifier, (PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
601 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
608 verifier, (PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
625 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
632 verifier, (PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
[all …]
Dcontext-test.cc201 PrivRl* priv_rl = reinterpret_cast<PrivRl*>(priv_rl_data_n1_zero_ikgf); in TEST_F() local
203 EXPECT_EQ(kEpidNoErr, EpidVerifierSetPrivRl(verifier, priv_rl, priv_rl_size)); in TEST_F()
226 auto& priv_rl = this->kEmptyPrivRlIkgf; in TEST_F() local
228 EpidVerifierSetPrivRl(verifier, (PrivRl const*)priv_rl.data(), in TEST_F()
229 priv_rl.size())); in TEST_F()
938 auto priv_rl = this->kGrpXPrivRl; in TEST_F() local
942 EpidVerifierSetPrivRl(verifier, (PrivRl*)priv_rl.data(), priv_rl.size())); in TEST_F()
/external/epid-sdk/epid/verifier/1.1/src/
Dcontext.c89 Epid11PrivRl const* priv_rl, in IsEpid11PrivRlValid() argument
94 if (!gid || !priv_rl || kMinPrivRlSize > priv_rl_size) { in IsEpid11PrivRlValid()
97 if (ntohl(priv_rl->n1) > in IsEpid11PrivRlValid()
98 (SIZE_MAX - kMinPrivRlSize) / sizeof(priv_rl->f[0])) { in IsEpid11PrivRlValid()
103 kMinPrivRlSize + ntohl(priv_rl->n1) * sizeof(priv_rl->f[0]); in IsEpid11PrivRlValid()
108 if (0 != memcmp(gid, &priv_rl->gid, sizeof(*gid))) { in IsEpid11PrivRlValid()
162 verifier_ctx->priv_rl = NULL; in Epid11VerifierCreate()
185 (*ctx)->priv_rl = NULL; in Epid11VerifierDelete()
228 Epid11PrivRl const* priv_rl, in Epid11VerifierSetPrivRl() argument
230 if (!ctx || !priv_rl || !ctx->pub_key) { in Epid11VerifierSetPrivRl()
[all …]
Dverify.c162 if (ctx->priv_rl) { in Epid11Verify()
163 if (0 != memcmp(&ctx->pub_key->gid, &ctx->priv_rl->gid, in Epid11Verify()
219 if (ctx->priv_rl) { in Epid11Verify()
220 size_t privrl_count = Epid11GetPrivRlCount(ctx->priv_rl); in Epid11Verify()
222 sts = Epid11PrVerify(ctx, &sig->sigma0, (BigNumStr*)&ctx->priv_rl->f[i]); in Epid11Verify()
Dcontext.h36 Epid11PrivRl const* priv_rl; ///< Private key based RL - not owned member
/external/epid-sdk/epid/verifier/1.1/unittests/
Dcheck_privrl_entry-test.cc37 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
41 FpElemStr fp_str = ((Epid11PrivRl const*)priv_rl.data())->f[0]; in TEST_F()
56 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
61 FpElemStr fp_str = ((Epid11PrivRl const*)priv_rl.data())->f[0]; in TEST_F()
72 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
77 FpElemStr fp_str = ((Epid11PrivRl const*)priv_rl.data())->f[0]; in TEST_F()
Dverify-test.cc543 auto& priv_rl = this->kGrpXPrivRlSingleEntry; in TEST_F() local
547 verifier, (Epid11PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
558 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
562 verifier, (Epid11PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
573 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
577 verifier, (Epid11PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
588 auto& priv_rl = this->kGrpXPrivRl; in TEST_F() local
592 verifier, (Epid11PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
603 auto& priv_rl = this->kGrpXCorruptedPrivRl; in TEST_F() local
607 verifier, (Epid11PrivRl const*)priv_rl.data(), priv_rl.size())); in TEST_F()
[all …]
/external/epid-sdk/example/verifysig/src/
Dverifysig11.c39 Epid11PrivRl* priv_rl = NULL; in Verify11() local
89 priv_rl = calloc(1, priv_rl_size); in Verify11()
90 if (!priv_rl) { in Verify11()
97 cacert, priv_rl, &priv_rl_size); in Verify11()
103 result = Epid11VerifierSetPrivRl(ctx, priv_rl, priv_rl_size); in Verify11()
176 if (priv_rl) free(priv_rl); in Verify11()
Dverifysig.c40 PrivRl* priv_rl = NULL; in Verify() local
96 priv_rl = calloc(1, priv_rl_size); in Verify()
97 if (!priv_rl) { in Verify()
104 priv_rl, &priv_rl_size); in Verify()
110 result = EpidVerifierSetPrivRl(ctx, priv_rl, priv_rl_size); in Verify()
191 if (priv_rl) free(priv_rl); in Verify()
/external/epid-sdk/epid/verifier/src/
Dcontext.c61 static bool IsPrivRlValid(GroupId const* gid, PrivRl const* priv_rl, in IsPrivRlValid() argument
66 if (!gid || !priv_rl || kMinPrivRlSize > priv_rl_size) { in IsPrivRlValid()
69 if (ntohl(priv_rl->n1) > in IsPrivRlValid()
70 (SIZE_MAX - kMinPrivRlSize) / sizeof(priv_rl->f[0])) { in IsPrivRlValid()
75 kMinPrivRlSize + ntohl(priv_rl->n1) * sizeof(priv_rl->f[0]); in IsPrivRlValid()
80 if (0 != memcmp(gid, &priv_rl->gid, sizeof(*gid))) { in IsPrivRlValid()
184 verifier_ctx->priv_rl = NULL; in EpidVerifierCreate()
214 (*ctx)->priv_rl = NULL; in EpidVerifierDelete()
268 EpidStatus EpidVerifierSetPrivRl(VerifierCtx* ctx, PrivRl const* priv_rl, in EpidVerifierSetPrivRl() argument
270 if (!ctx || !priv_rl || !ctx->pub_key) { in EpidVerifierSetPrivRl()
[all …]
Dverify.c115 if (ctx->priv_rl) { in EpidVerify()
116 size_t privrl_count = EpidGetPrivRlCount(ctx->priv_rl); in EpidVerify()
119 if (0 != memcmp(&ctx->pub_key->gid, &ctx->priv_rl->gid, in EpidVerify()
127 sts = EpidCheckPrivRlEntry(ctx, &sig->sigma0, &ctx->priv_rl->f[i]); in EpidVerify()
Dcontext.h35 PrivRl const* priv_rl; ///< Private key based revocation list - not owned member
/external/epid-sdk/epid/verifier/1.1/
Dapi.h193 Epid11PrivRl const* priv_rl,
/external/epid-sdk/epid/verifier/
Dapi.h169 EpidStatus EpidVerifierSetPrivRl(VerifierCtx* ctx, PrivRl const* priv_rl,