Lines Matching defs:FfElementTest
89 class FfElementTest : public ::testing::Test { class
1415 TEST_F(FfElementTest, NewFailsGivenNullPointer) { in TEST_F() argument
1422 TEST_F(FfElementTest, NewSucceedsGiven256BitFiniteField) { in TEST_F() argument
1428 TEST_F(FfElementTest, Default256BitElementIsZero) { in TEST_F() argument
1444 TEST_F(FfElementTest, DeleteNullsPointer) { in TEST_F() argument
1452 TEST_F(FfElementTest, DeleteWorksGivenNullPointer) { in TEST_F() argument
1461 TEST_F(FfElementTest, ReadFailsGivenArgumentsMismatch) { in TEST_F() argument
1469 TEST_F(FfElementTest, ReadFailsGivenNullPointer) { in TEST_F() argument
1479 TEST_F(FfElementTest, ReadFailsGivenInvalidBufferSize) { in TEST_F() argument
1487 TEST_F(FfElementTest, ReadFailsGivenElementDoesNotBelongToFF) { in TEST_F() argument
1493 TEST_F(FfElementTest, Read256BitElementCorrectly) { in TEST_F() argument
1504 TEST_F(FfElementTest, ReadIgnoreLeadingZerosForPrimeField) { in TEST_F() argument
1519 TEST_F(FfElementTest, ReadExpectExactSizeForFieldExtensions) { in TEST_F() argument
1528 TEST_F(FfElementTest, InitFromBnFailsGivenNonPrimeField) { in TEST_F() argument
1535 TEST_F(FfElementTest, InitFromBnFailsGivenNullPointer) { in TEST_F() argument
1544 TEST_F(FfElementTest, InitFromBnInFieldElementCorrectly) { in TEST_F() argument
1554 TEST_F(FfElementTest, InitFromBnOutOfFieldElementCorrectly) { in TEST_F() argument
1572 TEST_F(FfElementTest, FfIsEqualFailsGivenArgumentsMismatch) { in TEST_F() argument
1582 TEST_F(FfElementTest, FfIsEqualFailsGivenNullPointer) { in TEST_F() argument
1592 TEST_F(FfElementTest, FfIsEqualCanCompareElementWithItself) { in TEST_F() argument
1598 TEST_F(FfElementTest, Different256BitFiniteFieldElementsAreNotEqual) { in TEST_F() argument
1604 TEST_F(FfElementTest, Same256BitFiniteFieldElementsAreEqual) { in TEST_F() argument
1611 TEST_F(FfElementTest, DifferentFq12ElementsAreNotEqual) { in TEST_F() argument
1618 TEST_F(FfElementTest, SameFq12ElementsAreEqual) { in TEST_F() argument
1630 TEST_F(FfElementTest, WriteFailsGivenArgumentsMismatch) { in TEST_F() argument
1638 TEST_F(FfElementTest, WriteFailsGivenNullPointer) { in TEST_F() argument
1648 TEST_F(FfElementTest, WriteFailsGivenInvalidBufferSize) { in TEST_F() argument
1658 TEST_F(FfElementTest, WriteWorksGiven256BitElement) { in TEST_F() argument
1665 TEST_F(FfElementTest, WritePadPrimeFieldElement) { in TEST_F() argument
1673 TEST_F(FfElementTest, WriteExpectExactSizeForFieldExtensions) { in TEST_F() argument
1686 TEST_F(FfElementTest, FfNegFailsGivenArgumentsMismatch) { in TEST_F() argument
1692 TEST_F(FfElementTest, FfNegFailsGivenNullPointer) { in TEST_F() argument
1698 TEST_F(FfElementTest, FfNegSucceedsGivenElementZero) { in TEST_F() argument
1707 TEST_F(FfElementTest, FfNegSucceedsGivenNonZeroElement) { in TEST_F() argument
1719 TEST_F(FfElementTest, FfIsZeroFailsGivenNullPointer) { in TEST_F() argument
1726 TEST_F(FfElementTest, FfIsZeroFailsGivenArgumentsMismatch) { in TEST_F() argument
1732 TEST_F(FfElementTest, FfIsZeroSucceedsGivenZeroElement) { in TEST_F() argument
1738 TEST_F(FfElementTest, FfIsZeroSucceedsGivenNonZeroElement) { in TEST_F() argument
1747 TEST_F(FfElementTest, FfMulFailsGivenNullPointer) { in TEST_F() argument
1757 TEST_F(FfElementTest, FfMulFailsGivenArgumentsMismatch) { in TEST_F() argument
1770 TEST_F(FfElementTest, FfMulSucceedsGivenElementZero) { in TEST_F() argument
1786 TEST_F(FfElementTest, FfMulSucceedsGivenElementOne) { in TEST_F() argument
1802 TEST_F(FfElementTest, FfMulSucceedsGivenTwoElements) { in TEST_F() argument
1835 TEST_F(FfElementTest, FfSubFailsGivenArgumentsMismatch) { in TEST_F() argument
1846 TEST_F(FfElementTest, FfSubFailsGivenNullPtr) { in TEST_F() argument
1856 TEST_F(FfElementTest, FfSubSucceedsGivenElementZero) { in TEST_F() argument
1873 TEST_F(FfElementTest, FfSubSucceedsGivenTwoEqualElements) { in TEST_F() argument
1883 TEST_F(FfElementTest, FfSubSucceedsGivenTwoElements) { in TEST_F() argument
1893 TEST_F(FfElementTest, FfSubSucceedsGivenTwoElementsFq2) { in TEST_F() argument
1902 TEST_F(FfElementTest, FfSubSucceedsGivenTwoElementsFq6) { in TEST_F() argument
1911 TEST_F(FfElementTest, FfSubSucceedsGivenTwoElementsFq12) { in TEST_F() argument
1923 TEST_F(FfElementTest, FfAddFailsGivenArgumentsMismatch) { in TEST_F() argument
1934 TEST_F(FfElementTest, FfAddFailsGivenNullPtr) { in TEST_F() argument
1944 TEST_F(FfElementTest, FfAddSucceedsGivenElementZero) { in TEST_F() argument
1967 TEST_F(FfElementTest, FfAddSucceedsGivenTwoElements) { in TEST_F() argument
1977 TEST_F(FfElementTest, FfAddSucceedsGivenTwoElementsFq2) { in TEST_F() argument
1985 TEST_F(FfElementTest, FfAddSucceedsGivenTwoElementsFq6) { in TEST_F() argument
1993 TEST_F(FfElementTest, FfAddSucceedsGivenTwoElementsFq12) { in TEST_F() argument
2005 TEST_F(FfElementTest, FfInvFailsGivenNullPointer) { in TEST_F() argument
2011 TEST_F(FfElementTest, FfInvFailsGivenArgumentsMismatch) { in TEST_F() argument
2017 TEST_F(FfElementTest, FfInvFailsGivenElementZero) { in TEST_F() argument
2021 TEST_F(FfElementTest, FfInvSucceedsGivenElementOne) { in TEST_F() argument
2030 TEST_F(FfElementTest, FfInvSucceedsGivenAnElement) { in TEST_F() argument
2042 TEST_F(FfElementTest, FfExpFailsGivenNullPointer) { in TEST_F() argument
2052 TEST_F(FfElementTest, FfExpFailsGivenArgumentsMismatch) { in TEST_F() argument
2061 TEST_F(FfElementTest, FfExpSucceedsGivenElementZero) { in TEST_F() argument
2071 TEST_F(FfElementTest, FfExpSucceedsGivenExponentZero) { in TEST_F() argument
2081 TEST_F(FfElementTest, FfExpSucceedsGivenElementOne) { in TEST_F() argument
2091 TEST_F(FfElementTest, FfExpSucceedsGivenExponentOne) { in TEST_F() argument
2101 TEST_F(FfElementTest, FfExpSucceedsGivenAnElement) { in TEST_F() argument
2124 TEST_F(FfElementTest, FfHashFailsGivenArgumentsMismatch) { in TEST_F() argument
2133 TEST_F(FfElementTest, FfHashFailsGivenNullPointer) { in TEST_F() argument
2143 TEST_F(FfElementTest, FfHashFailsGivenUnsupportedHashAlg) { in TEST_F() argument
2153 TEST_F(FfElementTest, FfHashFailsGivenIncorrectMsgLen) { in TEST_F() argument
2164 TEST_F(FfElementTest, FfHashWorksGivenSHA256HashAlg) { in TEST_F() argument
2174 TEST_F(FfElementTest, FfHashWorksGivenSHA384HashAlg) { in TEST_F() argument
2184 TEST_F(FfElementTest, FfHashWorksGivenSHA512HashAlg) { in TEST_F() argument
2193 TEST_F(FfElementTest, FfHashWorksGivenSHA512256HashAlg) { in TEST_F() argument
2205 TEST_F(FfElementTest, FfMultiExpFailsGivenArgumentsMismatch) { in TEST_F() argument
2214 TEST_F(FfElementTest, FfMultiExpFailsGivenNullPointer) { in TEST_F() argument
2232 TEST_F(FfElementTest, FfMultiExpFailsGivenIncorrectMLen) { in TEST_F() argument
2245 TEST_F(FfElementTest, FfMultiExpWorksGivenOneExponent) { in TEST_F() argument
2265 TEST_F(FfElementTest, FfMultiExpWorksGivenTwoExponents) { in TEST_F() argument
2284 TEST_F(FfElementTest, FfMultiExpWorksGivenThreeExponents) { in TEST_F() argument
2303 TEST_F(FfElementTest, FfMultiExpWorksGivenFourExponents) { in TEST_F() argument
2322 TEST_F(FfElementTest, FfMultiExpWorksGivenFourFq12Exponents) { in TEST_F() argument
2341 TEST_F(FfElementTest, FfMultiExpWorksGivenFiveExponents) { in TEST_F() argument
2360 TEST_F(FfElementTest, FfMultiExpWorksGivenSixExponents) { in TEST_F() argument
2382 TEST_F(FfElementTest, FfMultiExpBnFailsGivenArgumentsMismatch) { in TEST_F() argument
2391 TEST_F(FfElementTest, FfMultiExpBnFailsGivenNullPointer) { in TEST_F() argument
2411 TEST_F(FfElementTest, FfMultiExpBnFailsGivenIncorrectMLen) { in TEST_F() argument
2425 TEST_F(FfElementTest, FfMultiExpBnWorksGivenOneExponent) { in TEST_F() argument
2448 TEST_F(FfElementTest, FfMultiExpBnWorksGivenTwoExponents) { in TEST_F() argument
2470 TEST_F(FfElementTest, FfMultiExpBnWorksGivenThreeExponents) { in TEST_F() argument
2493 TEST_F(FfElementTest, FfMultiExpBnWorksGivenFourExponents) { in TEST_F() argument
2516 TEST_F(FfElementTest, DISABLED_FfMultiExpBnWorksGivenFourFq12Exponents) { in TEST_F() argument
2540 TEST_F(FfElementTest, FfMultiExpBnWorksGivenFiveExponents) { in TEST_F() argument
2563 TEST_F(FfElementTest, FfMultiExpBnWorksGivenSixExponents) { in TEST_F() argument
2586 TEST_F(FfElementTest, FfMultiExpBnWorksOverEpid11GT) { in TEST_F() argument
2613 TEST_F(FfElementTest, SscmFfMultiExpFailsGivenArgumentsMismatch) { in TEST_F() argument
2625 TEST_F(FfElementTest, SscmFfMultiExpFailsGivenNullPointer) { in TEST_F() argument
2644 TEST_F(FfElementTest, SscmFfMultiExpFailsGivenIncorrectMLen) { in TEST_F() argument
2657 TEST_F(FfElementTest, SscmFfMultiExpWorksGivenOneExponent) { in TEST_F() argument
2677 TEST_F(FfElementTest, SscmFfMultiExpWorksGivenTwoExponents) { in TEST_F() argument
2697 TEST_F(FfElementTest, SscmFfMultiExpWorksGivenThreeExponents) { in TEST_F() argument
2717 TEST_F(FfElementTest, SscmFfMultiExpWorksGivenFourExponents) { in TEST_F() argument
2737 TEST_F(FfElementTest, SscmFfMultiExpWorksGivenFourFq12Exponents) { in TEST_F() argument
2757 TEST_F(FfElementTest, SscmFfMultiExpWorksGivenFiveExponents) { in TEST_F() argument
2777 TEST_F(FfElementTest, SscmFfMultiExpWorksGivenSixExponents) { in TEST_F() argument
2799 TEST_F(FfElementTest, FfGetRandomFailsGivenArgumentsMismatch) { in TEST_F() argument
2809 TEST_F(FfElementTest, FfGetRandomFailsGivenNullPtr) { in TEST_F() argument
2821 TEST_F(FfElementTest, FfGetRandomSucceedsGivenFq2) { in TEST_F() argument
2827 TEST_F(FfElementTest, FfGetRandomSucceedsGivenFq6) { in TEST_F() argument
2833 TEST_F(FfElementTest, FfGetRandomSucceedsGivenFq12) { in TEST_F() argument
2840 TEST_F(FfElementTest, FfGetRandomSuccedsGivenLowBound) { in TEST_F() argument
2869 TEST_F(FfElementTest, FfGetRandomGeneratesDifferentNumbers) { in TEST_F() argument
2881 TEST_F(FfElementTest, FfGetRandomFailsOnMaxIterGivenLargeLowBound) { in TEST_F() argument
2893 TEST_F(FfElementTest, FfSqrtFailsGivenNullPtr) { in TEST_F() argument
2900 TEST_F(FfElementTest, FfSqrtWorksForOne) { in TEST_F() argument
2907 TEST_F(FfElementTest, FfSqrtFailsForTwo) { in TEST_F() argument
2912 TEST_F(FfElementTest, FfSqrtFailsForThree) { in TEST_F() argument
2917 TEST_F(FfElementTest, FfSqrtWorksForFour) { in TEST_F() argument
2923 TEST_F(FfElementTest, FfSqrtFailsForFive) { in TEST_F() argument
2928 TEST_F(FfElementTest, FfSqrtWorksForEpid11Prime) { in TEST_F() argument
2946 TEST_F(FfElementTest, FfSqrtReturnsARoot) { in TEST_F() argument
2963 TEST_F(FfElementTest, FfSqrtReturnsARootInEpid11) { in TEST_F() argument
2980 TEST_F(FfElementTest, FfSqrtReturnsARoot224Prime) { in TEST_F() argument