• Home
  • Raw
  • Download

Lines Matching refs:efq_r

205     efq_r = EcPointObj(&efq);  in SetUp()
248 EcPointObj efq_r; member in __anona3e716940111::EcGroupTest
852 EcMul(this->efq2, this->efq_a, this->efq_b, this->efq_r)); in TEST_F()
854 EcMul(this->efq, this->efq2_a, this->efq_b, this->efq_r)); in TEST_F()
856 EcMul(this->efq, this->efq_a, this->efq2_b, this->efq_r)); in TEST_F()
862 EcMul(nullptr, this->efq_a, this->efq_b, this->efq_r)); in TEST_F()
864 EcMul(this->efq, nullptr, this->efq_b, this->efq_r)); in TEST_F()
866 EcMul(this->efq, this->efq_a, nullptr, this->efq_r)); in TEST_F()
873 EcMul(this->efq, this->efq_a, this->efq_identity, this->efq_r)); in TEST_F()
875 WriteEcPoint(this->efq, efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
879 EcMul(this->efq, this->efq_identity, this->efq_a, this->efq_r)); in TEST_F()
881 WriteEcPoint(this->efq, efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
888 EcMul(this->efq, this->efq_a, this->efq_b, this->efq_r)); in TEST_F()
890 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
920 EcExp(this->efq2, this->efq_a, &zero_bn_str, this->efq_r)); in TEST_F()
922 EcExp(this->efq, this->efq2_a, &zero_bn_str, this->efq_r)); in TEST_F()
929 EcExp(nullptr, this->efq_a, &zero_bn_str, this->efq_r)); in TEST_F()
931 EcExp(this->efq, nullptr, &zero_bn_str, this->efq_r)); in TEST_F()
933 EcExp(this->efq, this->efq_a, nullptr, this->efq_r)); in TEST_F()
941 EcExp(this->efq, this->efq_a, &zero_bn_str, this->efq_r)); in TEST_F()
943 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
949 EcExp(this->efq, this->efq_a, &this->x_str, this->efq_r)); in TEST_F()
951 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
976 EcSscmExp(this->efq2, this->efq_a, &zero_bn_str, this->efq_r)); in TEST_F()
978 EcSscmExp(this->efq, this->efq2_a, &zero_bn_str, this->efq_r)); in TEST_F()
985 EcSscmExp(nullptr, this->efq_a, &zero_bn_str, this->efq_r)); in TEST_F()
987 EcSscmExp(this->efq, nullptr, &zero_bn_str, this->efq_r)); in TEST_F()
989 EcSscmExp(this->efq, this->efq_a, nullptr, this->efq_r)); in TEST_F()
997 EcSscmExp(this->efq, this->efq_a, &zero_bn_str, this->efq_r)); in TEST_F()
999 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1005 EcSscmExp(this->efq, this->efq_a, &this->x_str, this->efq_r)); in TEST_F()
1007 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1044 EXPECT_EQ(kEpidBadArgErr, EcMultiExp(this->efq2, pts_ec1, b, m, this->efq_r)); in TEST_F()
1045 EXPECT_EQ(kEpidBadArgErr, EcMultiExp(this->efq, pts_ec2, b, m, this->efq_r)); in TEST_F()
1048 EcMultiExp(this->efq, pts_ec1_ec2, b, m, this->efq_r)); in TEST_F()
1065 EXPECT_EQ(kEpidBadArgErr, EcMultiExp(nullptr, pts, b, m, this->efq_r)); in TEST_F()
1066 EXPECT_EQ(kEpidBadArgErr, EcMultiExp(this->efq, nullptr, b, m, this->efq_r)); in TEST_F()
1068 EcMultiExp(this->efq, pts, nullptr, m, this->efq_r)); in TEST_F()
1071 EcMultiExp(this->efq, pts_withnull, b, m, this->efq_r)); in TEST_F()
1073 EcMultiExp(this->efq, pts, b_withnull, m, this->efq_r)); in TEST_F()
1081 EXPECT_EQ(kEpidNoErr, EcMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1083 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1092 EXPECT_EQ(kEpidNoErr, EcMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1094 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1105 EXPECT_EQ(kEpidNoErr, EcMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1107 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1150 EXPECT_EQ(kEpidNoErr, EcMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1152 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1160 EXPECT_EQ(kEpidNoErr, EcMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1162 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1219 EcMultiExpBn(this->efq2, pts_ec1, b, m, this->efq_r)); in TEST_F()
1221 EcMultiExpBn(this->efq, pts_ec2, b, m, this->efq_r)); in TEST_F()
1225 EcMultiExpBn(this->efq, pts_ec1_ec2, b, m, this->efq_r)); in TEST_F()
1243 EXPECT_EQ(kEpidBadArgErr, EcMultiExpBn(nullptr, pts, b, m, this->efq_r)); in TEST_F()
1245 EcMultiExpBn(this->efq, nullptr, b, m, this->efq_r)); in TEST_F()
1247 EcMultiExpBn(this->efq, pts, nullptr, m, this->efq_r)); in TEST_F()
1250 EcMultiExpBn(this->efq, pts_withnull, b, m, this->efq_r)); in TEST_F()
1252 EcMultiExpBn(this->efq, pts, b_withnull, m, this->efq_r)); in TEST_F()
1261 EXPECT_EQ(kEpidNoErr, EcMultiExpBn(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1263 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1274 EXPECT_EQ(kEpidNoErr, EcMultiExpBn(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1276 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1293 EXPECT_EQ(kEpidNoErr, EcMultiExpBn(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1295 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1348 EXPECT_EQ(kEpidNoErr, EcMultiExpBn(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1350 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1360 EXPECT_EQ(kEpidNoErr, EcMultiExpBn(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1362 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1485 EcSscmMultiExp(this->efq2, pts_ec1, b, m, this->efq_r)); in TEST_F()
1487 EcSscmMultiExp(this->efq, pts_ec2, b, m, this->efq_r)); in TEST_F()
1491 EcSscmMultiExp(this->efq, pts_ec1_ec2, b, m, this->efq_r)); in TEST_F()
1508 EXPECT_EQ(kEpidBadArgErr, EcSscmMultiExp(nullptr, pts, b, m, this->efq_r)); in TEST_F()
1510 EcSscmMultiExp(this->efq, nullptr, b, m, this->efq_r)); in TEST_F()
1512 EcSscmMultiExp(this->efq, pts, nullptr, m, this->efq_r)); in TEST_F()
1515 EcSscmMultiExp(this->efq, pts_withnull, b, m, this->efq_r)); in TEST_F()
1517 EcSscmMultiExp(this->efq, pts, b_withnull, m, this->efq_r)); in TEST_F()
1525 EXPECT_EQ(kEpidNoErr, EcSscmMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1527 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1536 EXPECT_EQ(kEpidNoErr, EcSscmMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1538 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1549 EXPECT_EQ(kEpidNoErr, EcSscmMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1551 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1594 EXPECT_EQ(kEpidNoErr, EcSscmMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1596 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1604 EXPECT_EQ(kEpidNoErr, EcSscmMultiExp(this->efq, pts, b, m, this->efq_r)); in TEST_F()
1606 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1649 EcGetRandom(this->efq2, &Prng::Generate, &my_prng, this->efq_r)); in TEST_F()
1656 EcGetRandom(nullptr, &Prng::Generate, &my_prng, this->efq_r)); in TEST_F()
1658 EcGetRandom(this->efq, nullptr, &my_prng, this->efq_r)); in TEST_F()
1739 EcHash(this->efq2, msg, sizeof(msg), kSha256, this->efq_r, NULL)); in TEST_F()
1746 EcHash(nullptr, msg, sizeof(msg), kSha256, this->efq_r, NULL)); in TEST_F()
1748 this->efq_r, NULL)); in TEST_F()
1755 EcHash(this->efq, msg, sizeof(msg), kSha3_256, this->efq_r, NULL)); in TEST_F()
1757 EcHash(this->efq, msg, sizeof(msg), kSha3_384, this->efq_r, NULL)); in TEST_F()
1759 EcHash(this->efq, msg, sizeof(msg), kSha3_512, this->efq_r, NULL)); in TEST_F()
1764 EcHash(this->efq, nullptr, 1, kSha256, this->efq_r, NULL)); in TEST_F()
1767 this->efq_r, NULL)); in TEST_F()
1769 this->efq_r, NULL)); in TEST_F()
1772 this->efq_r, NULL)); in TEST_F()
1776 EXPECT_EQ(kEpidNoErr, EcHash(this->efq, "", 0, kSha256, this->efq_r, NULL)); in TEST_F()
1781 this->efq_r, NULL)); in TEST_F()
1783 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1789 this->efq_r, NULL)); in TEST_F()
1791 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1797 this->efq_r, NULL)); in TEST_F()
1799 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1805 this->efq_r, NULL)); in TEST_F()
1807 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
1813 this->efq_r, &i)); in TEST_F()
1819 this->efq_r, &i)); in TEST_F()
1825 this->efq_r, &i)); in TEST_F()
1831 this->efq_r, &i)); in TEST_F()
1838 kSha512, this->efq_r, &i)); in TEST_F()
1848 WriteEcPoint(this->efq, this->efq_r, &res_aad, sizeof(res_aad))); in TEST_F()
1857 kSha512, this->efq_r, &i)); in TEST_F()
1867 WriteEcPoint(this->efq, this->efq_r, &res_1_MB, sizeof(res_1_MB))); in TEST_F()
1877 kSha512, this->efq_r, &i)); in TEST_F()
1886 THROW_ON_EPIDERR(WriteEcPoint(this->efq, this->efq_r, &res_1_MB_Minus_2, in TEST_F()
1896 kSha512, this->efq_r, &i)); in TEST_F()
1906 WriteEcPoint(this->efq, this->efq_r, &res_102, sizeof(res_102))); in TEST_F()
1914 Epid11EcHash(this->efq2, msg, sizeof(msg), this->efq_r)); in TEST_F()
1983 EXPECT_EQ(kEpidBadArgErr, EcMakePoint(this->efq2, this->fq_a, this->efq_r)); in TEST_F()
1984 EXPECT_EQ(kEpidBadArgErr, EcMakePoint(this->efq, fq2_a, this->efq_r)); in TEST_F()
1988 EXPECT_EQ(kEpidBadArgErr, EcMakePoint(nullptr, this->fq_a, this->efq_r)); in TEST_F()
1989 EXPECT_EQ(kEpidBadArgErr, EcMakePoint(this->efq, nullptr, this->efq_r)); in TEST_F()
2007 EXPECT_EQ(kEpidNoErr, EcMakePoint(this->efq, elem, this->efq_r)); in TEST_F()
2011 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
2016 EcMakePoint(this->efq, FfElementObj(&this->fq), this->efq_r)); in TEST_F()
2025 EXPECT_EQ(kEpidBadArgErr, EcInverse(this->efq2, this->efq_a, this->efq_r)); in TEST_F()
2026 EXPECT_EQ(kEpidBadArgErr, EcInverse(this->efq, this->efq2_a, this->efq_r)); in TEST_F()
2031 EXPECT_EQ(kEpidBadArgErr, EcInverse(nullptr, this->efq_a, this->efq_r)); in TEST_F()
2032 EXPECT_EQ(kEpidBadArgErr, EcInverse(this->efq, nullptr, this->efq_r)); in TEST_F()
2038 EXPECT_EQ(kEpidNoErr, EcInverse(this->efq, this->efq_identity, this->efq_r)); in TEST_F()
2040 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()
2053 EXPECT_EQ(kEpidNoErr, EcInverse(this->efq, this->efq_a, this->efq_r)); in TEST_F()
2055 WriteEcPoint(this->efq, this->efq_r, &efq_r_str, sizeof(efq_r_str))); in TEST_F()