|
Bouncy Castle Cryptography Library 1.86 | |||||||||
| 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.crypto.agreement.test.JPAKEUtilTest
| Constructor Summary | |
JPAKEUtilTest()
|
|
| Method Summary | |
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()
|
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 JPAKEUtilTest()
| Method Detail |
public void testValidateGx4()
throws CryptoException
CryptoException
public void testValidateGa()
throws CryptoException
CryptoException
public void testValidateParticipantIdsDiffer()
throws CryptoException
CryptoException
public void testValidateParticipantIdsEqual()
throws CryptoException
CryptoException
public void testValidateMacTag()
throws CryptoException
CryptoException
public void testValidateMacTagEncoding()
throws CryptoException
CryptoExceptionpublic void testValidateNotNull()
public void testPrivateExponentsAreBlinded()
throws CryptoException
CryptoException
public void testValidateZeroKnowledgeProof()
throws CryptoException
CryptoException
|
Bouncy Castle Cryptography Library 1.86 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||