/external/epid-sdk/epid/verifier/unittests/ |
D | check_privrl_entry-test.cc | 38 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()
|
D | verify-test.cc | 529 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 …]
|
D | context-test.cc | 201 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/ |
D | context.c | 89 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 …]
|
D | verify.c | 162 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()
|
D | context.h | 36 Epid11PrivRl const* priv_rl; ///< Private key based RL - not owned member
|
/external/epid-sdk/epid/verifier/1.1/unittests/ |
D | check_privrl_entry-test.cc | 37 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()
|
D | verify-test.cc | 543 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/ |
D | verifysig11.c | 39 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()
|
D | verifysig.c | 40 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/ |
D | context.c | 61 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 …]
|
D | verify.c | 115 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()
|
D | context.h | 35 PrivRl const* priv_rl; ///< Private key based revocation list - not owned member
|
/external/epid-sdk/epid/verifier/1.1/ |
D | api.h | 193 Epid11PrivRl const* priv_rl,
|
/external/epid-sdk/epid/verifier/ |
D | api.h | 169 EpidStatus EpidVerifierSetPrivRl(VerifierCtx* ctx, PrivRl const* priv_rl,
|