public class JPAKEUtilTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
JPAKEUtilTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testPrivateExponentsAreBlinded()
Every exponent carrying private material is randomised with a multiple of q before it is
raised, so each of those calls draws exactly one blinding factor.
|
void |
testValidateGa() |
void |
testValidateGx4() |
void |
testValidateMacTag() |
void |
testValidateMacTagEncoding()
The MacTag comparison encodes both sides to the MAC's fixed width so its running time does
not depend on the expected - secret-derived - value. calculateMacTag reads the MAC output
with the signed BigInteger(byte[]) constructor, so a tag is negative about half the
time, and about one tag in 240 has a two's-complement encoding shorter than the MAC.
|
void |
testValidateNotNull() |
void |
testValidateParticipantIdsDiffer() |
void |
testValidateParticipantIdsEqual() |
void |
testValidateZeroKnowledgeProof() |
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, setUp, tearDown, toStringpublic void testValidateGx4()
throws CryptoException
CryptoExceptionpublic void testValidateGa()
throws CryptoException
CryptoExceptionpublic void testValidateParticipantIdsDiffer()
throws CryptoException
CryptoExceptionpublic void testValidateParticipantIdsEqual()
throws CryptoException
CryptoExceptionpublic void testValidateMacTag()
throws CryptoException
CryptoExceptionpublic void testValidateMacTagEncoding()
throws CryptoException
CryptoExceptionpublic void testValidateNotNull()
public void testPrivateExponentsAreBlinded()
throws CryptoException
CryptoExceptionpublic void testValidateZeroKnowledgeProof()
throws CryptoException
CryptoException