Lines Matching refs:fq12
108 fq12 = FiniteFieldObj(fq6, neg_v, 2); in SetUp()
152 fq12_g = FfElementObj(&fq12, &fq12_g_str, sizeof(fq12_g_str)); in SetUp()
153 fq12_h = FfElementObj(&fq12, &fq12_h_str, sizeof(fq12_h_str)); in SetUp()
154 fq12_i = FfElementObj(&fq12, &fq12_i_str, sizeof(fq12_i_str)); in SetUp()
155 fq12_j = FfElementObj(&fq12, &fq12_j_str, sizeof(fq12_j_str)); in SetUp()
156 fq12_k = FfElementObj(&fq12, &fq12_k_str, sizeof(fq12_k_str)); in SetUp()
157 fq12_result = FfElementObj(&fq12); in SetUp()
163 FiniteFieldObj fq12; member in __anon7a8ed96c0111::FfElementTest
1464 ReadFfElement(this->fq12, buf, sizeof(Fq12ElemStr), this->fq_a)); in TEST_F()
1575 FfIsEqual(this->fq12, this->fq_a, this->fq_b, &result)); in TEST_F()
1614 FfIsEqual(this->fq12, this->fq12_g, this->fq12_h, &result)); in TEST_F()
1619 FfElementObj fq12_g_local(&this->fq12, &this->fq12_g_str, in TEST_F()
1623 FfIsEqual(this->fq12, this->fq12_g, fq12_g_local, &result)); in TEST_F()
1633 WriteFfElement(this->fq12, this->fq_a, buf, sizeof(Fq12ElemStr))); in TEST_F()
1675 EXPECT_EQ(kEpidBadArgErr, WriteFfElement(this->fq12, this->fq12_g, buf, in TEST_F()
1677 EXPECT_EQ(kEpidBadArgErr, WriteFfElement(this->fq12, this->fq12_g, buf, in TEST_F()
1680 WriteFfElement(this->fq12, this->fq12_g, buf, sizeof(FqElemStr))); in TEST_F()
1687 EXPECT_EQ(kEpidBadArgErr, FfNeg(this->fq12, this->fq_a, this->fq_result)); in TEST_F()
1728 EXPECT_EQ(kEpidBadArgErr, FfIsZero(this->fq12, this->fq_a, &result)); in TEST_F()
1759 FfMul(this->fq12, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1822 THROW_ON_EPIDERR(ReadFfElement(this->fq12, &(this->fq12_i_str), in TEST_F()
1824 THROW_ON_EPIDERR(ReadFfElement(this->fq12, &(fq12_j_str), sizeof(fq12_j_str), in TEST_F()
1827 FfMul(this->fq12, this->fq12_i, this->fq12_j, this->fq12_result)); in TEST_F()
1828 THROW_ON_EPIDERR(WriteFfElement(this->fq12, this->fq12_result, &fq12_r_str, in TEST_F()
1837 FfSub(this->fq12, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1912 FfElementObj a(&this->fq12, &this->bn_a_str, sizeof(this->bn_a_str)); in TEST_F()
1913 FfElementObj b(&this->fq12, &this->bn_b_str, sizeof(this->bn_b_str)); in TEST_F()
1914 FfElementObj sum_ab(&this->fq12, this->fq12_sum_ab_str); in TEST_F()
1915 FfElementObj r(&this->fq12); in TEST_F()
1917 EXPECT_EQ(kEpidNoErr, FfSub(this->fq12, sum_ab, b, r)); in TEST_F()
1925 FfAdd(this->fq12, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1994 FfElementObj a(&this->fq12, &this->bn_a_str, sizeof(this->bn_a_str)); in TEST_F()
1995 FfElementObj b(&this->fq12, &this->bn_b_str, sizeof(this->bn_b_str)); in TEST_F()
1996 FfElementObj r(&this->fq12); in TEST_F()
1998 EXPECT_EQ(kEpidNoErr, FfAdd(this->fq12, a, b, r)); in TEST_F()
1999 EXPECT_EQ(FfElementObj(&this->fq12, this->fq12_sum_ab_str), r); in TEST_F()
2012 EXPECT_EQ(kEpidBadArgErr, FfInv(this->fq12, this->fq_a, this->fq_result)); in TEST_F()
2054 FfExp(this->fq12, this->fq_a, this->bn_0, this->fq_result)); in TEST_F()
2115 FfExp(this->fq12, this->fq12_k, bn_pm1, this->fq12_result)); in TEST_F()
2116 THROW_ON_EPIDERR(WriteFfElement(this->fq12, this->fq12_result, &fq12_r_str, in TEST_F()
2126 FfHash(this->fq12, this->sha_msg, sizeof(this->sha_msg), kSha256, in TEST_F()
2209 EXPECT_EQ(kEpidBadArgErr, FfMultiExp(this->fq12, p, b, 2, this->fq_result)); in TEST_F()
2323 FfElementObj r12(&this->fq12); in TEST_F()
2330 fq12_exp[m] = FfElementObj(&this->fq12, this->fq12_multi_exp_base_4[m]); in TEST_F()
2336 EXPECT_EQ(kEpidNoErr, FfMultiExp(this->fq12, p, b, 4, r12)); in TEST_F()
2337 EXPECT_EQ(FfElementObj(&this->fq12, this->fq12_multi_exp_res_4), r12) in TEST_F()
2386 EXPECT_EQ(kEpidBadArgErr, FfMultiExpBn(this->fq12, p, b, 2, this->fq_result)); in TEST_F()
2518 FfElementObj fq12_r(&this->fq12); in TEST_F()
2526 fq12_base[m] = FfElementObj(&this->fq12, this->fq12_multi_exp_base_4[m]); in TEST_F()
2534 FfMultiExpBn(this->fq12, fq12_p, fq12_b, items, fq12_r)); in TEST_F()
2535 EXPECT_EQ(FfElementObj(&this->fq12, this->fq_multi_exp_res_4), fq12_r) in TEST_F()
2618 FfSscmMultiExp(this->fq12, p, b, 2, this->fq_result)); in TEST_F()
2738 FfElementObj r12(&this->fq12); in TEST_F()
2745 fq12_exp[m] = FfElementObj(&this->fq12, this->fq12_multi_exp_base_4[m]); in TEST_F()
2751 EXPECT_EQ(kEpidNoErr, FfSscmMultiExp(this->fq12, p, b, 4, r12)); in TEST_F()
2752 EXPECT_EQ(FfElementObj(&this->fq12, this->fq12_multi_exp_res_4), r12) in TEST_F()
2802 FfGetRandom(this->fq12, &this->bn_1_str, &Prng::Generate, &my_prng, in TEST_F()
2835 FfElementObj r(&this->fq12); in TEST_F()
2836 EXPECT_EQ(kEpidNoErr, FfGetRandom(this->fq12, &this->bn_1_str, in TEST_F()