public class ECPointTest
extends junit.framework.TestCase
ECPoint. All
literature values are taken from "Guide to elliptic curve cryptography",
Darrel Hankerson, Alfred J. Menezes, Scott Vanstone, 2004, Springer-Verlag
New York, Inc.| Modifier and Type | Class and Description |
|---|---|
static class |
ECPointTest.F2m
Nested class containing sample literature values for
F2m. |
static class |
ECPointTest.Fp
Nested class containing sample literature values for
Fp. |
| Constructor and Description |
|---|
ECPointTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
static junit.framework.Test |
suite() |
void |
testAdd()
Calls
implTestAdd() for Fp and
F2m. |
void |
testAddSubtractMultiplySimple()
Calls
implTestAddSubtract() for literature values, both
for Fp and F2m. |
void |
testAddSubtractMultiplyTwiceEncoding()
Calls
implTestAddSubtract(),
implTestMultiply and implTestEncoding for
the standard elliptic curves as given in SECNamedCurves. |
void |
testAllPoints()
Calls
implTestAllPoints() for the small literature curves,
both for Fp and F2m. |
void |
testExampleFpB0() |
void |
testLargeMInF2m() |
void |
testPointCreationConsistency()
Tests, if inconsistent points can be created, i.e. points with exactly
one null coordinate (not permitted).
|
void |
testThreeTimes()
Calls
implTestThreeTimes() for Fp and
F2m. |
void |
testTwice()
Calls
implTestTwice() for Fp and
F2m. |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toStringpublic void setUp()
setUp in class junit.framework.TestCasepublic void testPointCreationConsistency()
public void testLargeMInF2m()
public void testAdd()
implTestAdd() for Fp and
F2m.public void testTwice()
implTestTwice() for Fp and
F2m.public void testThreeTimes()
implTestThreeTimes() for Fp and
F2m.public void testAllPoints()
implTestAllPoints() for the small literature curves,
both for Fp and F2m.public void testAddSubtractMultiplySimple()
implTestAddSubtract() for literature values, both
for Fp and F2m.public void testAddSubtractMultiplyTwiceEncoding()
implTestAddSubtract(),
implTestMultiply and implTestEncoding for
the standard elliptic curves as given in SECNamedCurves.public void testExampleFpB0()
throws java.lang.Exception
java.lang.Exceptionpublic static junit.framework.Test suite()