|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.bouncycastle.math.ec.test.ECPointTest
Test class for 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.
| Nested Class Summary | |
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 Summary | |
ECPointTest()
|
|
| Method Summary | |
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 |
testDecodePointRejectsEmptyEncoding()
|
void |
testExampleFpB0()
|
void |
testLargeMInF2m()
|
void |
testMultiplySmallOrderPoint()
Multiplying a point of small odd order used to throw NullPointerException from the WNAF precomputation: the odd-multiples table 1P, 3P, 5P, [] reaches the point at infinity, which the isomorphism-based normalisation of Fp Jacobian curves could not invert, and the table then meets the doubling case too. |
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. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
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, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ECPointTest()
| Method Detail |
public void setUp()
public void testPointCreationConsistency()
public void testLargeMInF2m()
public void testAdd()
public void testTwice()
public void testThreeTimes()
public void testAllPoints()
public void testAddSubtractMultiplySimple()
public void testAddSubtractMultiplyTwiceEncoding()
public void testExampleFpB0()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultiplySmallOrderPoint()
public void testDecodePointRejectsEmptyEncoding()
public static junit.framework.Test suite()
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||