Lines Matching refs:Fq
27 static EpidStatus NewFq(Epid2Params const* param, FiniteField** Fq);
29 static EpidStatus NewFq2(Epid2Params const* param, FiniteField* Fq,
35 static EpidStatus NewG1(Epid2Params const* param, FiniteField* Fq,
39 FiniteField* Fq, FiniteField* Fq2, EcGroup** G2);
48 static void DeleteFq(FiniteField** Fq);
106 result = NewFq(¶ms_str, &internal_param->Fq); in CreateEpid2Params()
110 result = NewFq2(¶ms_str, internal_param->Fq, &internal_param->Fq2); in CreateEpid2Params()
114 result = NewFfElement(internal_param->Fq, &internal_param->b); in CreateEpid2Params()
118 result = ReadFfElement(internal_param->Fq, ¶ms_str.b, in CreateEpid2Params()
141 result = NewG1(¶ms_str, internal_param->Fq, &internal_param->G1); in CreateEpid2Params()
156 internal_param->Fq, internal_param->Fq2, &internal_param->G2); in CreateEpid2Params()
194 DeleteFq(&internal_param->Fq); in CreateEpid2Params()
220 DeleteFq(&(*epid_params)->Fq); in DeleteEpid2Params()
244 static EpidStatus NewFq(Epid2Params const* param, FiniteField** Fq) { in NewFq() argument
246 if (!param || !Fq) { in NewFq()
249 result = NewFiniteField(¶m->q, Fq); in NewFq()
255 EpidStatus NewFq2(Epid2Params const* param, FiniteField* Fq, in NewFq2() argument
261 if (!param || !Fq || !Fq2) { in NewFq2()
265 result = NewFfElement(Fq, &beta); in NewFq2()
269 result = NewFfElement(Fq, &neg_beta); in NewFq2()
273 result = ReadFfElement(Fq, ¶m->beta, sizeof(param->beta), beta); in NewFq2()
277 result = FfNeg(Fq, beta, neg_beta); in NewFq2()
281 result = NewFiniteFieldViaBinomalExtension(Fq, neg_beta, 2, &Ff); in NewFq2()
323 EpidStatus NewG1(Epid2Params const* param, FiniteField* Fq, EcGroup** G1) { in NewG1() argument
338 if (!param || !Fq || !G1) { in NewG1()
347 result = NewFfElement(Fq, &fq_a); in NewG1()
352 result = NewFfElement(Fq, &fq_b); in NewG1()
356 result = ReadFfElement(Fq, ¶m->b, sizeof(param->b), fq_b); in NewG1()
361 result = NewFfElement(Fq, &g1_x); in NewG1()
365 result = ReadFfElement(Fq, ¶m->g1.x, sizeof(param->g1.x), g1_x); in NewG1()
370 result = NewFfElement(Fq, &g1_y); in NewG1()
374 result = ReadFfElement(Fq, ¶m->g1.y, sizeof(param->g1.y), g1_y); in NewG1()
397 result = NewEcGroup(Fq, fq_a, fq_b, g1_x, g1_y, order, cofactor, &ec); in NewG1()
415 FiniteField* Fq, FiniteField* Fq2, EcGroup** G2) { in NewG2() argument
425 if (!param || !Fq || !Fq2 || !G2) { in NewG2()
445 result = NewFfElement(Fq, &fq_param_b); in NewG2()
449 result = ReadFfElement(Fq, ¶m->b, sizeof(param->b), fq_param_b); in NewG2()
581 static void DeleteFq(FiniteField** Fq) { DeleteFiniteField(Fq); } in DeleteFq() argument