• Home
  • Raw
  • Download

Lines Matching refs:Fq2

30                          FiniteField** Fq2);
32 EpidStatus NewFq6(Epid2Params const* param, FiniteField* Fq2, FfElement* xi,
39 FiniteField* Fq, FiniteField* Fq2, EcGroup** G2);
50 static void DeleteFq2(FiniteField** Fq2);
110 result = NewFq2(&params_str, internal_param->Fq, &internal_param->Fq2); in CreateEpid2Params()
123 result = NewFfElement(internal_param->Fq2, &internal_param->xi); in CreateEpid2Params()
127 result = ReadFfElement(internal_param->Fq2, &params_str.xi, in CreateEpid2Params()
132 result = NewFq6(&params_str, internal_param->Fq2, internal_param->xi, in CreateEpid2Params()
156 internal_param->Fq, internal_param->Fq2, &internal_param->G2); in CreateEpid2Params()
195 DeleteFq2(&internal_param->Fq2); in CreateEpid2Params()
221 DeleteFq2(&(*epid_params)->Fq2); in DeleteEpid2Params()
256 FiniteField** Fq2) { in NewFq2() argument
261 if (!param || !Fq || !Fq2) { in NewFq2()
285 *Fq2 = Ff; in NewFq2()
294 EpidStatus NewFq6(Epid2Params const* param, FiniteField* Fq2, FfElement* xi, in NewFq6() argument
299 if (!param || !Fq2 || !Fq6) { in NewFq6()
303 result = NewFfElement(Fq2, &neg_xi); in NewFq6()
307 result = FfNeg(Fq2, xi, neg_xi); in NewFq6()
311 result = NewFiniteFieldViaBinomalExtension(Fq2, neg_xi, 3, &Ff); in NewFq6()
415 FiniteField* Fq, FiniteField* Fq2, EcGroup** G2) { in NewG2() argument
425 if (!param || !Fq || !Fq2 || !G2) { in NewG2()
433 result = NewFfElement(Fq2, &b); in NewG2()
437 result = ReadFfElement(Fq2, &param->xi, sizeof(param->xi), b); in NewG2()
441 result = FfInv(Fq2, b, b); in NewG2()
453 result = FfMul(Fq2, b, fq_param_b, b); // ??? overflow fq2*fq in NewG2()
459 result = NewFfElement(Fq2, &x); in NewG2()
463 result = ReadFfElement(Fq2, &param->g2.x, sizeof(param->g2.x), x); in NewG2()
467 result = NewFfElement(Fq2, &y); in NewG2()
471 result = ReadFfElement(Fq2, &param->g2.y, sizeof(param->g2.y), y); in NewG2()
498 result = NewFfElement(Fq2, &a); in NewG2()
503 result = NewEcGroup(Fq2, a, b, x, y, order, cofactor, &ec); in NewG2()
582 static void DeleteFq2(FiniteField** Fq2) { DeleteFiniteField(Fq2); } in DeleteFq2() argument