/external/epid-sdk/epid/common/1.1/src/ |
D | epid11params.c | 209 result = ReadFfElement(Fq, &(params->qnr), sizeof(params->qnr), qnr); in NewFqk() 225 result = ReadFfElement(Fqd, &(ground_element_str), in NewFqk() 259 result = ReadFfElement(Fq, ¶ms->a, sizeof(params->a), fq_a); in NewG1() 264 result = ReadFfElement(Fq, ¶ms->b, sizeof(params->b), fq_b); in NewG1() 269 result = ReadFfElement(Fq, ¶ms->g1.x, sizeof(params->g1.x), g1_x); in NewG1() 274 result = ReadFfElement(Fq, ¶ms->g1.y, sizeof(params->g1.y), g1_y); in NewG1() 324 ReadFfElement(Fq_dash, ¶ms->a_tick, sizeof(params->a_tick), fq_a); in NewG3() 330 ReadFfElement(Fq_dash, ¶ms->b_tick, sizeof(params->b_tick), fq_b); in NewG3() 335 result = ReadFfElement(Fq_dash, ¶ms->g3.x, sizeof(params->g3.x), g3_x); in NewG3() 340 result = ReadFfElement(Fq_dash, ¶ms->g3.y, sizeof(params->g3.y), g3_y); in NewG3() [all …]
|
/external/epid-sdk/epid/member/src/ |
D | startup.c | 75 sts = ReadFfElement(Fp, &ctx->credential.x, sizeof(ctx->credential.x), x); in EpidMemberStartup() 111 sts = ReadFfElement(GT, &precomp->e12, sizeof(precomp->e12), e12); in MemberReadPrecomputation() 114 sts = ReadFfElement(GT, &precomp->e22, sizeof(precomp->e22), e22); in MemberReadPrecomputation() 117 sts = ReadFfElement(GT, &precomp->e2w, sizeof(precomp->e2w), e2w); in MemberReadPrecomputation() 120 sts = ReadFfElement(GT, &precomp->ea2, sizeof(precomp->ea2), ea2); in MemberReadPrecomputation()
|
D | signbasic.c | 156 sts = ReadFfElement(Fp, &curr_presig.a, sizeof(curr_presig.a), a); in EpidSignBasic() 158 sts = ReadFfElement(Fp, &curr_presig.b, sizeof(curr_presig.b), b); in EpidSignBasic() 160 sts = ReadFfElement(Fp, &curr_presig.rx, sizeof(curr_presig.rx), rx); in EpidSignBasic() 162 sts = ReadFfElement(Fp, &curr_presig.ra, sizeof(curr_presig.ra), ra); in EpidSignBasic() 164 sts = ReadFfElement(Fp, &curr_presig.rb, sizeof(curr_presig.rb), rb); in EpidSignBasic() 175 sts = ReadFfElement(Fq, &commit_out.B.y, sizeof(commit_out.B.y), p2y); in EpidSignBasic() 268 sts = ReadFfElement(Fp, &c_str, sizeof(c_str), c); in EpidSignBasic()
|
D | nrprove.c | 188 sts = ReadFfElement(Fq, &B_str.y, sizeof(B_str.y), y2); in EpidNrProve() 234 sts = ReadFfElement(Fp, &c_str, sizeof(c_str), c); in EpidNrProve()
|
D | decompress_privkey.c | 147 result = ReadFfElement(Fq, &compressed_privkey->ax, in EpidDecompressPrivKey()
|
/external/epid-sdk/epid/common/math/src/ |
D | tatepairing.c | 172 result = ReadFfElement(pairing_state_ctx->Fq3, &fq3_str, sizeof(fq3_str), in NewEpid11PairingState() 186 result = ReadFfElement(pairing_state_ctx->Fq3, &fq3_str, sizeof(fq3_str), in NewEpid11PairingState() 242 result = ReadFfElement(pairing_state_ctx->Fq3, &trans_100, in NewEpid11PairingState() 247 result = ReadFfElement(pairing_state_ctx->Fq3, &trans_010, in NewEpid11PairingState() 350 result = ReadFfElement(ps->ff, &one_fq6, sizeof(one_fq6), d); in Epid11Pairing() 363 result = ReadFfElement(ps->Fq3, &b_str.x, sizeof(b_str.x), b0); in Epid11Pairing() 365 result = ReadFfElement(ps->Fq3, &b_str.y, sizeof(b_str.y), b1); in Epid11Pairing() 379 result = ReadFfElement(ps->ff, &bx_str, sizeof(bx_str), pQx); in Epid11Pairing() 387 result = ReadFfElement(ps->ff, &by_str, sizeof(by_str), pQy); in Epid11Pairing() 397 result = ReadFfElement(ps->Fq, &a_str.x, sizeof(a_str.x), px); in Epid11Pairing() [all …]
|
D | finitefield.c | 334 status = ReadFfElement((FiniteField*)ground_field, &irr_polynomial[i], in NewFiniteFieldViaPolynomialExtension() 573 EpidStatus ReadFfElement(FiniteField* ff, ConstOctStr ff_elem_str, in ReadFfElement() function 690 result = ReadFfElement(ff, mod_str, elem_size, ff_elem); in InitFfElementFromBn() 1291 result = ReadFfElement(ff, low_bound, sizeof(*low_bound), low); in FfGetRandom() 1478 result = ReadFfElement(ff, &one_str, sizeof(one_str), g); in FfSqrt()
|
/external/epid-sdk/epid/common/src/ |
D | epid2params.c | 118 result = ReadFfElement(internal_param->Fq, ¶ms_str.b, in CreateEpid2Params() 127 result = ReadFfElement(internal_param->Fq2, ¶ms_str.xi, in CreateEpid2Params() 273 result = ReadFfElement(Fq, ¶m->beta, sizeof(param->beta), beta); in NewFq2() 356 result = ReadFfElement(Fq, ¶m->b, sizeof(param->b), fq_b); in NewG1() 365 result = ReadFfElement(Fq, ¶m->g1.x, sizeof(param->g1.x), g1_x); in NewG1() 374 result = ReadFfElement(Fq, ¶m->g1.y, sizeof(param->g1.y), g1_y); in NewG1() 437 result = ReadFfElement(Fq2, ¶m->xi, sizeof(param->xi), b); in NewG2() 449 result = ReadFfElement(Fq, ¶m->b, sizeof(param->b), fq_param_b); in NewG2() 463 result = ReadFfElement(Fq2, ¶m->g2.x, sizeof(param->g2.x), x); in NewG2() 471 result = ReadFfElement(Fq2, ¶m->g2.y, sizeof(param->g2.y), y); in NewG2() [all …]
|
/external/epid-sdk/epid/verifier/src/ |
D | verifybasic.c | 176 res = ReadFfElement(Fp, &(sig->c), sizeof(sig->c), c); in EpidVerifyBasicSig() 185 res = ReadFfElement(Fp, &(sig->sx), sizeof(sig->sx), sx); in EpidVerifyBasicSig() 192 res = ReadFfElement(Fp, &(sig->sf), sizeof(sig->sf), sf); in EpidVerifyBasicSig() 199 res = ReadFfElement(Fp, &(sig->sa), sizeof(sig->sa), sa); in EpidVerifyBasicSig() 206 res = ReadFfElement(Fp, &(sig->sb), sizeof(sig->sb), sb); in EpidVerifyBasicSig()
|
D | nrverify.c | 142 sts = ReadFfElement(Fp, &proof->c, sizeof(proof->c), c_el); in EpidNrVerify() 144 sts = ReadFfElement(Fp, &proof->smu, sizeof(proof->smu), smu_el); in EpidNrVerify() 146 sts = ReadFfElement(Fp, &proof->snu, sizeof(proof->snu), snu_el); in EpidNrVerify()
|
D | context.c | 669 result = ReadFfElement(GT, &precomp_str->e12, sizeof(precomp_str->e12), e12); in ReadPrecomputation() 673 result = ReadFfElement(GT, &precomp_str->e22, sizeof(precomp_str->e22), e22); in ReadPrecomputation() 677 result = ReadFfElement(GT, &precomp_str->e2w, sizeof(precomp_str->e2w), e2w); in ReadPrecomputation() 682 ReadFfElement(GT, &precomp_str->eg12, sizeof(precomp_str->eg12), eg12); in ReadPrecomputation()
|
D | check_privrl_entry.c | 61 result = ReadFfElement(Fp, (BigNumStr const*)f, sizeof(BigNumStr), ff_elem); in EpidCheckPrivRlEntry()
|
/external/epid-sdk/epid/member/tpm2/ibm_tss/ |
D | sign.c | 106 sts = ReadFfElement(Fp, &k_str, sizeof(k_str), k); in Tpm2Sign() 113 sts = ReadFfElement(Fp, &s_str, sizeof(s_str), s); in Tpm2Sign()
|
D | context.c | 84 sts = ReadFfElement(Fp, params->f, sizeof(*params->f), ff_elem); in Tpm2CreateContext()
|
D | load_external.c | 61 sts = ReadFfElement(ctx->epid2_params->Fp, f_str, sizeof(*f_str), f); in Tpm2LoadExternal()
|
/external/epid-sdk/epid/member/tpm2/src/ |
D | load_external.c | 49 sts = ReadFfElement(Fp, f_str, sizeof(*f_str), ctx->f); in Tpm2LoadExternal()
|
D | context.c | 59 sts = ReadFfElement(Fp, params->f, sizeof(*params->f), ff_elem); in Tpm2CreateContext()
|
D | sign.c | 107 sts = ReadFfElement(Fp, &tmp_str, sizeof(tmp_str), k); in Tpm2Sign()
|
/external/epid-sdk/epid/verifier/1.1/src/ |
D | context.c | 437 result = ReadFfElement(GT, &precomp_str->e12, sizeof(precomp_str->e12), e12); in ReadPrecomputation() 441 result = ReadFfElement(GT, &precomp_str->e22, sizeof(precomp_str->e22), e22); in ReadPrecomputation() 445 result = ReadFfElement(GT, &precomp_str->e2w, sizeof(precomp_str->e2w), e2w); in ReadPrecomputation()
|
D | verify.c | 93 sts = ReadFfElement(Fp, f_str, sizeof(BigNumStr), f); in Epid11PrVerify()
|
/external/epid-sdk/epid/common/math/unittests/ |
D | ffelement-test.cc | 1464 ReadFfElement(this->fq12, buf, sizeof(Fq12ElemStr), this->fq_a)); in TEST_F() 1466 ReadFfElement(this->fq, buf, sizeof(FqElemStr), this->fq12_result)); in TEST_F() 1471 EXPECT_EQ(kEpidBadArgErr, ReadFfElement(nullptr, &ff_elem_str, in TEST_F() 1474 ReadFfElement(this->fq, nullptr, sizeof(ff_elem_str), this->fq_a)); in TEST_F() 1475 EXPECT_EQ(kEpidBadArgErr, ReadFfElement(this->fq, &ff_elem_str, in TEST_F() 1481 ReadFfElement(this->fq, &this->fq_qm1_str, 0, this->fq_a)); in TEST_F() 1483 ReadFfElement(this->fq, &this->fq_qm1_str, in TEST_F() 1489 EXPECT_EQ(kEpidBadArgErr, ReadFfElement(this->fq, &this->bn_q_str, in TEST_F() 1495 ASSERT_EQ(kEpidNoErr, ReadFfElement(this->fq, &this->fq_qm1_str, in TEST_F() 1510 ASSERT_EQ(kEpidNoErr, ReadFfElement(this->fq, ff_elem_str.data(), in TEST_F() [all …]
|
/external/epid-sdk/epid/member/tpm2/unittests/ |
D | sign-simulator-test.cc | 62 THROW_ON_EPIDERR(ReadFfElement(params.fp, this->kDigestSha256, in TEST_F()
|
D | commit-test.cc | 250 ReadFfElement(params.fq.get(), &R_str.y, sizeof(R_str.y), y)); in TEST_F() 281 ReadFfElement(params.fq.get(), &R_str.y, sizeof(R_str.y), y)); in TEST_F() 311 ReadFfElement(params.fq.get(), &R_str.y, sizeof(R_str.y), y)); in TEST_F()
|
/external/epid-sdk/epid/common/math/ |
D | finitefield.h | 187 EpidStatus ReadFfElement(FiniteField* ff, ConstOctStr ff_elem_str,
|
/external/epid-sdk/epid/common-testhelper/ |
D | ffelement_wrapper-testhelper.cc | 59 THROW_ON_EPIDERR(ReadFfElement(ff_, buf, buflen, ffe.get())); in write()
|