Lines Matching refs:fq2
97 fq2 = FiniteFieldObj(fq, neg_beta, 2); in SetUp()
100 FfElementObj neg_xi(&fq2); in SetUp()
101 THROW_ON_EPIDERR(FfNeg(fq2, FfElementObj(&fq2, this->fq2_2_1_str), neg_xi)); in SetUp()
102 fq6 = FiniteFieldObj(fq2, neg_xi, 3); in SetUp()
149 fq2_a = FfElementObj(&fq2, &fq2_a_str, sizeof(fq2_a_str)); in SetUp()
150 fq2_result = FfElementObj(&fq2); in SetUp()
161 FiniteFieldObj fq2; member in __anon725152750111::FfElementTest
1522 ReadFfElement(this->fq2, buf, sizeof(buf), this->fq2_a)); in TEST_F()
1530 FfElementObj ffe(&this->fq2); in TEST_F()
1532 EXPECT_EQ(kEpidBadArgErr, InitFfElementFromBn(this->fq2, bn, ffe)); in TEST_F()
1767 FfMul(this->fq2, this->fq_a, this->fq2_a, this->fq2_result)); in TEST_F()
1816 FfMul(this->fq2, this->fq2_a, this->fq_b, this->fq2_result)); in TEST_F()
1817 THROW_ON_EPIDERR(WriteFfElement(this->fq2, this->fq2_result, &fq2_r_str, in TEST_F()
1894 FfElementObj a(&this->fq2, &this->bn_a_str, sizeof(this->bn_a_str)); in TEST_F()
1895 FfElementObj b(&this->fq2, &this->bn_b_str, sizeof(this->bn_b_str)); in TEST_F()
1896 FfElementObj sum_ab(&this->fq2, this->fq2_sum_ab_str); in TEST_F()
1897 FfElementObj r(&this->fq2); in TEST_F()
1899 EXPECT_EQ(kEpidNoErr, FfSub(this->fq2, sum_ab, b, r)); in TEST_F()
1978 FfElementObj a(&this->fq2, &this->bn_a_str, sizeof(this->bn_a_str)); in TEST_F()
1979 FfElementObj b(&this->fq2, &this->bn_b_str, sizeof(this->bn_b_str)); in TEST_F()
1980 FfElementObj r(&this->fq2); in TEST_F()
1982 EXPECT_EQ(kEpidNoErr, FfAdd(this->fq2, a, b, r)); in TEST_F()
1983 EXPECT_EQ(FfElementObj(&this->fq2, this->fq2_sum_ab_str), r); in TEST_F()
2823 FfElementObj r(&this->fq2); in TEST_F()
2824 EXPECT_EQ(kEpidNoErr, FfGetRandom(this->fq2, &this->bn_1_str, &Prng::Generate, in TEST_F()