Searched refs:group_rl (Results 1 – 8 of 8) sorted by relevance
/external/epid-sdk/epid/verifier/1.1/unittests/ |
D | context-test.cc | 345 std::vector<uint8_t> group_rl(this->kGroupRl3GidBuf); in TEST_F() local 346 Epid11GroupRl* grl = (Epid11GroupRl*)group_rl.data(); in TEST_F() 348 Epid11VerifierSetGroupRl(nullptr, grl, group_rl.size())); in TEST_F() 350 Epid11VerifierSetGroupRl(verifier, nullptr, group_rl.size())); in TEST_F() 355 std::vector<uint8_t> group_rl(this->kGroupRl3GidBuf); in TEST_F() local 356 Epid11GroupRl* grl = (Epid11GroupRl*)group_rl.data(); in TEST_F() 362 std::vector<uint8_t> group_rl(this->kGroupRl3GidBuf); in TEST_F() local 363 Epid11GroupRl* grl = (Epid11GroupRl*)group_rl.data(); in TEST_F() 364 size_t grl_size = group_rl.size() - sizeof(grl->gid[0]); in TEST_F() 371 std::vector<uint8_t> group_rl(this->kGroupRl3GidBuf); in TEST_F() local [all …]
|
/external/epid-sdk/epid/verifier/1.1/src/ |
D | context.c | 42 static bool Epid11IsGroupRlValid(Epid11GroupRl const* group_rl, in Epid11IsGroupRlValid() argument 47 if (!group_rl) { in Epid11IsGroupRlValid() 53 if (ntohl(group_rl->n3) > in Epid11IsGroupRlValid() 58 kMinGroupRlSize + (ntohl(group_rl->n3) * sizeof(Epid11GroupId)); in Epid11IsGroupRlValid() 161 verifier_ctx->group_rl = NULL; in Epid11VerifierCreate() 187 (*ctx)->group_rl = NULL; in Epid11VerifierDelete() 284 if (ctx->group_rl) { in Epid11VerifierSetGroupRl() 287 current_ver = ntohl(ctx->group_rl->version); in Epid11VerifierSetGroupRl() 293 ctx->group_rl = grp_rl; in Epid11VerifierSetGroupRl()
|
D | verify.c | 183 if (ctx->group_rl) { in Epid11Verify() 186 size_t grouprl_count = Epid11GetGroupRlCount(ctx->group_rl); in Epid11Verify() 188 if (0 == memcmp(&ctx->pub_key->gid, &ctx->group_rl->gid[i], in Epid11Verify()
|
D | context.h | 38 Epid11GroupRl const* group_rl; ///< Group RL - not owned member
|
/external/epid-sdk/epid/verifier/src/ |
D | context.c | 43 static bool IsGroupRlValid(GroupRl const* group_rl, size_t grp_rl_size) { in IsGroupRlValid() argument 47 if (!group_rl || grp_rl_size < kMinGroupRlSize) { in IsGroupRlValid() 50 if (ntohl(group_rl->n3) > (SIZE_MAX - kMinGroupRlSize) / sizeof(GroupId)) { in IsGroupRlValid() 53 input_grp_rl_size = kMinGroupRlSize + (ntohl(group_rl->n3) * sizeof(GroupId)); in IsGroupRlValid() 183 verifier_ctx->group_rl = NULL; in EpidVerifierCreate() 216 (*ctx)->group_rl = NULL; in EpidVerifierDelete() 322 if (ctx->group_rl) { in EpidVerifierSetGroupRl() 325 current_ver = ntohl(ctx->group_rl->version); in EpidVerifierSetGroupRl() 331 ctx->group_rl = grp_rl; in EpidVerifierSetGroupRl()
|
D | verify.c | 102 if (ctx->group_rl) { in EpidVerify() 104 size_t grouprl_count = EpidGetGroupRlCount(ctx->group_rl); in EpidVerify() 106 if (0 == memcmp(&ctx->pub_key->gid, &ctx->group_rl->gid[i], in EpidVerify()
|
D | context.h | 37 GroupRl const* group_rl; ///< Group revocation list - not owned member
|
/external/epid-sdk/epid/verifier/unittests/ |
D | context-test.cc | 430 GroupRl* group_rl = (GroupRl*)this->kGroupRl3GidN0Buf.data(); in TEST_F() local 432 EpidVerifierSetGroupRl(verifier, group_rl, in TEST_F() 438 GroupRl* group_rl = (GroupRl*)this->kGroupRl3GidN2Buf.data(); in TEST_F() local 440 EpidVerifierSetGroupRl(verifier, group_rl, in TEST_F() 446 GroupRl* group_rl = (GroupRl*)this->kGroupRl3GidN4Buf.data(); in TEST_F() local 448 EpidVerifierSetGroupRl(verifier, group_rl, in TEST_F() 466 GroupRl* group_rl = (GroupRl*)this->kGroupRl3GidBuf.data(); in TEST_F() local 467 EXPECT_EQ(kEpidNoErr, EpidVerifierSetGroupRl(verifier, group_rl, in TEST_F() 473 GroupRl* group_rl = (GroupRl*)this->kGroupRl3GidBuf.data(); in TEST_F() local 474 EXPECT_EQ(kEpidNoErr, EpidVerifierSetGroupRl(verifier, group_rl, in TEST_F()
|