Lines Matching refs:fq_result
140 fq_result = FfElementObj(&fq); in SetUp()
177 FfElementObj fq_result; member in __anon7a8ed96c0111::FfElementTest
1687 EXPECT_EQ(kEpidBadArgErr, FfNeg(this->fq12, this->fq_a, this->fq_result)); in TEST_F()
1688 EXPECT_EQ(kEpidBadArgErr, FfNeg(this->fq, this->fq12_g, this->fq_result)); in TEST_F()
1693 EXPECT_EQ(kEpidBadArgErr, FfNeg(nullptr, this->fq_a, this->fq_result)); in TEST_F()
1694 EXPECT_EQ(kEpidBadArgErr, FfNeg(this->fq, nullptr, this->fq_result)); in TEST_F()
1700 EXPECT_EQ(kEpidNoErr, FfNeg(this->fq, this->fq_0, this->fq_result)); in TEST_F()
1702 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1709 EXPECT_EQ(kEpidNoErr, FfNeg(this->fq, this->fq_a, this->fq_result)); in TEST_F()
1711 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1749 FfMul(nullptr, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1751 FfMul(this->fq, nullptr, this->fq_b, this->fq_result)); in TEST_F()
1753 FfMul(this->fq, this->fq_a, nullptr, this->fq_result)); in TEST_F()
1759 FfMul(this->fq12, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1761 FfMul(this->fq, this->fq12_g, this->fq_b, this->fq_result)); in TEST_F()
1763 FfMul(this->fq, this->fq_a, this->fq12_h, this->fq_result)); in TEST_F()
1774 FfMul(this->fq, this->fq_0, this->fq_b, this->fq_result)); in TEST_F()
1776 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1780 FfMul(this->fq, this->fq_a, this->fq_0, this->fq_result)); in TEST_F()
1782 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1790 FfMul(this->fq, this->fq_1, this->fq_b, this->fq_result)); in TEST_F()
1792 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1796 FfMul(this->fq, this->fq_a, this->fq_1, this->fq_result)); in TEST_F()
1798 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1806 FfMul(this->fq, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1808 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1837 FfSub(this->fq12, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1839 FfSub(this->fq, this->fq12_g, this->fq_b, this->fq_result)); in TEST_F()
1841 FfSub(this->fq, this->fq_a, this->fq12_h, this->fq_result)); in TEST_F()
1848 FfSub(nullptr, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1850 FfSub(this->fq, nullptr, this->fq_b, this->fq_result)); in TEST_F()
1852 FfSub(this->fq, this->fq_a, nullptr, this->fq_result)); in TEST_F()
1861 FfSub(this->fq, this->fq_a, this->fq_0, this->fq_result)); in TEST_F()
1863 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1867 FfSub(this->fq, this->fq_0, this->fq_0, this->fq_result)); in TEST_F()
1869 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1877 FfSub(this->fq, this->fq_a, this->fq_a, this->fq_result)); in TEST_F()
1879 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1887 FfSub(this->fq, this->fq_sum_ab, this->fq_b, this->fq_result)); in TEST_F()
1889 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1925 FfAdd(this->fq12, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1927 FfAdd(this->fq, this->fq12_g, this->fq_b, this->fq_result)); in TEST_F()
1929 FfAdd(this->fq, this->fq_a, this->fq12_h, this->fq_result)); in TEST_F()
1936 FfAdd(nullptr, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1938 FfAdd(this->fq, nullptr, this->fq_b, this->fq_result)); in TEST_F()
1940 FfAdd(this->fq, this->fq_a, nullptr, this->fq_result)); in TEST_F()
1949 FfAdd(this->fq, this->fq_a, this->fq_0, this->fq_result)); in TEST_F()
1951 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1955 FfAdd(this->fq, this->fq_0, this->fq_b, this->fq_result)); in TEST_F()
1957 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1961 FfAdd(this->fq, this->fq_0, this->fq_0, this->fq_result)); in TEST_F()
1963 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
1971 FfAdd(this->fq, this->fq_a, this->fq_b, this->fq_result)); in TEST_F()
1973 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2006 EXPECT_EQ(kEpidBadArgErr, FfInv(nullptr, (this->fq_a), this->fq_result)); in TEST_F()
2007 EXPECT_EQ(kEpidBadArgErr, FfInv(this->fq, nullptr, this->fq_result)); in TEST_F()
2012 EXPECT_EQ(kEpidBadArgErr, FfInv(this->fq12, this->fq_a, this->fq_result)); in TEST_F()
2013 EXPECT_EQ(kEpidBadArgErr, FfInv(this->fq, this->fq12_g, this->fq_result)); in TEST_F()
2018 EXPECT_EQ(kEpidDivByZeroErr, FfInv(this->fq, this->fq_0, this->fq_result)); in TEST_F()
2024 EXPECT_EQ(kEpidNoErr, FfInv(this->fq, this->fq_1, this->fq_result)); in TEST_F()
2026 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2033 EXPECT_EQ(kEpidNoErr, FfInv(this->fq, this->fq_a, this->fq_result)); in TEST_F()
2035 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2044 FfExp(nullptr, this->fq_a, this->bn_a, this->fq_result)); in TEST_F()
2046 FfExp(this->fq, nullptr, this->bn_a, this->fq_result)); in TEST_F()
2048 FfExp(this->fq, this->fq_a, nullptr, this->fq_result)); in TEST_F()
2054 FfExp(this->fq12, this->fq_a, this->bn_0, this->fq_result)); in TEST_F()
2056 FfExp(this->fq, this->fq12_g, this->bn_0, this->fq_result)); in TEST_F()
2065 FfExp(this->fq, this->fq_0, this->bn_a, this->fq_result)); in TEST_F()
2067 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2075 FfExp(this->fq, this->fq_a, this->bn_0, this->fq_result)); in TEST_F()
2077 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2085 FfExp(this->fq, this->fq_1, this->bn_a, this->fq_result)); in TEST_F()
2087 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2095 FfExp(this->fq, this->fq_a, this->bn_1, this->fq_result)); in TEST_F()
2097 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2105 FfExp(this->fq, this->fq_a, this->bn_a, this->fq_result)); in TEST_F()
2107 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2127 this->fq_result)); in TEST_F()
2136 FfHash(nullptr, msg, sizeof(msg), kSha256, this->fq_result)); in TEST_F()
2138 FfHash(this->fq, nullptr, sizeof(msg), kSha256, this->fq_result)); in TEST_F()
2146 FfHash(this->fq, msg, sizeof(msg), kSha3_256, this->fq_result)); in TEST_F()
2148 FfHash(this->fq, msg, sizeof(msg), kSha3_384, this->fq_result)); in TEST_F()
2150 FfHash(this->fq, msg, sizeof(msg), kSha3_512, this->fq_result)); in TEST_F()
2156 EXPECT_EQ(kEpidBadArgErr, FfHash(this->fq, msg, 0, kSha256, this->fq_result)); in TEST_F()
2159 this->fq_result)); in TEST_F()
2161 this->fq_result)); in TEST_F()
2167 this->fq_result)); in TEST_F()
2169 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2177 this->fq_result)); in TEST_F()
2179 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2187 this->fq_result)); in TEST_F()
2189 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2196 this->fq_result)); in TEST_F()
2198 WriteFfElement(this->fq, this->fq_result, &fq_r_str, sizeof(fq_r_str))); in TEST_F()
2209 EXPECT_EQ(kEpidBadArgErr, FfMultiExp(this->fq12, p, b, 2, this->fq_result)); in TEST_F()
2210 EXPECT_EQ(kEpidBadArgErr, FfMultiExp(this->fq, p12, b, 2, this->fq_result)); in TEST_F()
2220 EXPECT_EQ(kEpidBadArgErr, FfMultiExp(nullptr, p, b, m, this->fq_result)); in TEST_F()
2222 FfMultiExp(this->fq, nullptr, b, m, this->fq_result)); in TEST_F()
2224 FfMultiExp(this->fq, p, nullptr, m, this->fq_result)); in TEST_F()
2227 FfMultiExp(this->fq, p_withnull, b, m, this->fq_result)); in TEST_F()
2229 FfMultiExp(this->fq, p, b_withnull, m, this->fq_result)); in TEST_F()
2237 EXPECT_EQ(kEpidBadArgErr, FfMultiExp(this->fq, p, b, 0, this->fq_result)); in TEST_F()
2240 this->fq_result)); in TEST_F()
2242 FfMultiExp(this->fq, p, b, len_greater_int_max, this->fq_result)); in TEST_F()
2386 EXPECT_EQ(kEpidBadArgErr, FfMultiExpBn(this->fq12, p, b, 2, this->fq_result)); in TEST_F()
2387 EXPECT_EQ(kEpidBadArgErr, FfMultiExpBn(this->fq, p12, b, 2, this->fq_result)); in TEST_F()
2399 EXPECT_EQ(kEpidBadArgErr, FfMultiExpBn(nullptr, p, b, m, this->fq_result)); in TEST_F()
2401 FfMultiExpBn(this->fq, nullptr, b, m, this->fq_result)); in TEST_F()
2403 FfMultiExpBn(this->fq, p, nullptr, m, this->fq_result)); in TEST_F()
2406 FfMultiExpBn(this->fq, p_withnull, b, m, this->fq_result)); in TEST_F()
2408 FfMultiExpBn(this->fq, p, b_withnull, m, this->fq_result)); in TEST_F()
2417 EXPECT_EQ(kEpidBadArgErr, FfMultiExpBn(this->fq, p, b, 0, this->fq_result)); in TEST_F()
2420 this->fq_result)); in TEST_F()
2422 FfMultiExpBn(this->fq, p, b, len_greater_int_max, this->fq_result)); in TEST_F()
2618 FfSscmMultiExp(this->fq12, p, b, 2, this->fq_result)); in TEST_F()
2620 FfSscmMultiExp(this->fq, p12, b, 2, this->fq_result)); in TEST_F()
2632 EXPECT_EQ(kEpidBadArgErr, FfSscmMultiExp(nullptr, p, b, m, this->fq_result)); in TEST_F()
2634 FfSscmMultiExp(this->fq, nullptr, b, m, this->fq_result)); in TEST_F()
2636 FfSscmMultiExp(this->fq, p, nullptr, m, this->fq_result)); in TEST_F()
2639 FfSscmMultiExp(this->fq, p_withnull, b, m, this->fq_result)); in TEST_F()
2641 FfSscmMultiExp(this->fq, p, b_withnull, m, this->fq_result)); in TEST_F()
2649 EXPECT_EQ(kEpidBadArgErr, FfSscmMultiExp(this->fq, p, b, 0, this->fq_result)); in TEST_F()
2652 this->fq_result)); in TEST_F()
2654 this->fq_result)); in TEST_F()
2803 this->fq_result)); in TEST_F()