Lines Matching refs:params
42 Epid20Params params; in TEST_F() local
43 EcPointObj k(¶ms.G1), l(¶ms.G1), e(¶ms.G1); in TEST_F()
44 EcPointObj p1(¶ms.G1, this->kP1Str); in TEST_F()
45 FfElementObj y2(¶ms.fq, this->kY2Sha256Str); in TEST_F()
58 EcPointObj p1_exp_r(¶ms.G1), p2_exp_r(¶ms.G1); in TEST_F()
60 EcPointObj p2(¶ms.G1, this->kP2Sha256Str); in TEST_F()
62 FfElementObj r(¶ms.fp); in TEST_F()
66 FfGetRandom(params.fp, &zero, &Prng::Generate, &the_same_prng, r)); in TEST_F()
67 THROW_ON_EPIDERR(WriteFfElement(params.fp, r, &r_str, sizeof(r_str))); in TEST_F()
68 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F()
70 WriteEcPoint(params.G1, p1_exp_r, &p1_exp_r_str, sizeof(p1_exp_r_str))); in TEST_F()
71 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F()
73 WriteEcPoint(params.G1, p2_exp_r, &p2_exp_r_str, sizeof(p2_exp_r_str))); in TEST_F()
76 THROW_ON_EPIDERR(WriteEcPoint(params.G1, k, &k_str, sizeof(k_str))); in TEST_F()
77 THROW_ON_EPIDERR(WriteEcPoint(params.G1, l, &l_str, sizeof(l_str))); in TEST_F()
78 THROW_ON_EPIDERR(WriteEcPoint(params.G1, e, &e_str, sizeof(e_str))); in TEST_F()
86 Epid20Params params; in TEST_F() local
87 EcPointObj k(¶ms.G1), l(¶ms.G1), e(¶ms.G1); in TEST_F()
88 EcPointObj p1(¶ms.G1, this->kP1Str); in TEST_F()
89 FfElementObj y2(¶ms.fq, this->kY2Sha384Str); in TEST_F()
103 EcPointObj p1_exp_r(¶ms.G1), p2_exp_r(¶ms.G1); in TEST_F()
105 EcPointObj p2(¶ms.G1, this->kP2Sha384Str); in TEST_F()
107 FfElementObj r(¶ms.fp); in TEST_F()
111 FfGetRandom(params.fp, &zero, &Prng::Generate, &the_same_prng, r)); in TEST_F()
112 THROW_ON_EPIDERR(WriteFfElement(params.fp, r, &r_str, sizeof(r_str))); in TEST_F()
113 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F()
115 WriteEcPoint(params.G1, p1_exp_r, &p1_exp_r_str, sizeof(p1_exp_r_str))); in TEST_F()
116 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F()
118 WriteEcPoint(params.G1, p2_exp_r, &p2_exp_r_str, sizeof(p2_exp_r_str))); in TEST_F()
121 THROW_ON_EPIDERR(WriteEcPoint(params.G1, k, &k_str, sizeof(k_str))); in TEST_F()
122 THROW_ON_EPIDERR(WriteEcPoint(params.G1, l, &l_str, sizeof(l_str))); in TEST_F()
123 THROW_ON_EPIDERR(WriteEcPoint(params.G1, e, &e_str, sizeof(e_str))); in TEST_F()
131 Epid20Params params; in TEST_F() local
132 EcPointObj k(¶ms.G1), l(¶ms.G1), e(¶ms.G1); in TEST_F()
133 EcPointObj p1(¶ms.G1, this->kP1Str); in TEST_F()
134 FfElementObj y2(¶ms.fq, this->kY2Sha512Str); in TEST_F()
148 EcPointObj p1_exp_r(¶ms.G1), p2_exp_r(¶ms.G1); in TEST_F()
150 EcPointObj p2(¶ms.G1, this->kP2Sha512Str); in TEST_F()
152 FfElementObj r(¶ms.fp); in TEST_F()
156 FfGetRandom(params.fp, &zero, &Prng::Generate, &the_same_prng, r)); in TEST_F()
157 THROW_ON_EPIDERR(WriteFfElement(params.fp, r, &r_str, sizeof(r_str))); in TEST_F()
158 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F()
160 WriteEcPoint(params.G1, p1_exp_r, &p1_exp_r_str, sizeof(p1_exp_r_str))); in TEST_F()
161 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F()
163 WriteEcPoint(params.G1, p2_exp_r, &p2_exp_r_str, sizeof(p2_exp_r_str))); in TEST_F()
166 THROW_ON_EPIDERR(WriteEcPoint(params.G1, k, &k_str, sizeof(k_str))); in TEST_F()
167 THROW_ON_EPIDERR(WriteEcPoint(params.G1, l, &l_str, sizeof(l_str))); in TEST_F()
168 THROW_ON_EPIDERR(WriteEcPoint(params.G1, e, &e_str, sizeof(e_str))); in TEST_F()
176 Epid20Params params; in TEST_F() local
177 EcPointObj k(¶ms.G1), l(¶ms.G1), e(¶ms.G1); in TEST_F()
178 EcPointObj p1(¶ms.G1, this->kP1Str); in TEST_F()
179 FfElementObj y2(¶ms.fq, this->kY2Sha512256Str); in TEST_F()
193 EcPointObj p1_exp_r(¶ms.G1), p2_exp_r(¶ms.G1); in TEST_F()
195 EcPointObj p2(¶ms.G1, this->kP2Sha512256Str); in TEST_F()
197 FfElementObj r(¶ms.fp); in TEST_F()
201 FfGetRandom(params.fp, &zero, &Prng::Generate, &the_same_prng, r)); in TEST_F()
202 THROW_ON_EPIDERR(WriteFfElement(params.fp, r, &r_str, sizeof(r_str))); in TEST_F()
203 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F()
205 WriteEcPoint(params.G1, p1_exp_r, &p1_exp_r_str, sizeof(p1_exp_r_str))); in TEST_F()
206 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F()
208 WriteEcPoint(params.G1, p2_exp_r, &p2_exp_r_str, sizeof(p2_exp_r_str))); in TEST_F()
211 THROW_ON_EPIDERR(WriteEcPoint(params.G1, k, &k_str, sizeof(k_str))); in TEST_F()
212 THROW_ON_EPIDERR(WriteEcPoint(params.G1, l, &l_str, sizeof(l_str))); in TEST_F()
213 THROW_ON_EPIDERR(WriteEcPoint(params.G1, e, &e_str, sizeof(e_str))); in TEST_F()
221 Epid20Params params; in TEST_F() local
222 EcPointObj k(¶ms.G1), l(¶ms.G1), e(¶ms.G1); in TEST_F()
223 EcPointObj p1(¶ms.G1, this->kP1Str); in TEST_F()
224 FfElementObj y2(¶ms.fq, this->kY2Sha512Str); in TEST_F()
237 EcPointObj p1_exp_r(¶ms.G1); in TEST_F()
240 FfElementObj r(¶ms.fp); in TEST_F()
244 FfGetRandom(params.fp, &zero, &Prng::Generate, &the_same_prng, r)); in TEST_F()
245 THROW_ON_EPIDERR(WriteFfElement(params.fp, r, &r_str, sizeof(r_str))); in TEST_F()
246 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F()
248 WriteEcPoint(params.G1, p1_exp_r, &p1_exp_r_str, sizeof(p1_exp_r_str))); in TEST_F()
251 THROW_ON_EPIDERR(WriteEcPoint(params.G1, e, &e_str, sizeof(e_str))); in TEST_F()
257 Epid20Params params; in TEST_F() local
258 EcPointObj e(¶ms.G1); in TEST_F()
259 EcPointObj p1(¶ms.G1, this->kP1Str); in TEST_F()
260 FfElementObj y2(¶ms.fq, this->kY2Sha512Str); in TEST_F()
273 EcPointObj g1(¶ms.G1, this->kg1Str); in TEST_F()
274 EcPointObj g1_exp_r(¶ms.G1); in TEST_F()
277 FfElementObj r(¶ms.fp); in TEST_F()
281 FfGetRandom(params.fp, &zero, &Prng::Generate, &the_same_prng, r)); in TEST_F()
282 THROW_ON_EPIDERR(WriteFfElement(params.fp, r, &r_str, sizeof(r_str))); in TEST_F()
283 THROW_ON_EPIDERR(EcExp(params.G1, g1, (BigNumStr const*)&r_str, g1_exp_r)); in TEST_F()
285 WriteEcPoint(params.G1, g1_exp_r, &g1_exp_r_str, sizeof(g1_exp_r_str))); in TEST_F()
288 THROW_ON_EPIDERR(WriteEcPoint(params.G1, e, &e_str, sizeof(e_str))); in TEST_F()