net.i2p.crypto
Class SessionEncryptionTest

java.lang.Object
  extended bynet.i2p.crypto.SessionEncryptionTest

public class SessionEncryptionTest
extends java.lang.Object

session key management unit tests: Run tagsIncluded useTag rekey // no sessions 1 no no no 2 no no no // session 3 yes (2) no no 4 no yes no 5 yes (2) yes no 6 no yes no 7 no yes no // rekeying 8 yes (2) no no 9 no yes no 10 yes (2) yes yes 11 no yes no 12 no yes no // long session 13-1000 20 tags every 10 messages, rekey every 50


Constructor Summary
SessionEncryptionTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void testLongSession()
          20 tags every 10 messages, rekey every 50
 void testLongSession(int numMsgs)
           
 void testNoSessions()
          Run tagsIncluded useTag rekey 1 no no no 2 no no no
 void testRekeying()
          Run tagsIncluded useTag rekey 1 yes (2) no no 2 no yes no 3 yes (2) yes yes 4 no yes no 5 no yes no
 void testSessions()
          Run tagsIncluded useTag rekey 1 yes (2) no no 2 no yes no 3 yes (2) yes no 4 no yes no 5 no yes no
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionEncryptionTest

public SessionEncryptionTest()
Method Detail

main

public static void main(java.lang.String[] args)

testNoSessions

public void testNoSessions()
                    throws java.lang.Exception
Run tagsIncluded useTag rekey 1 no no no 2 no no no

Throws:
java.lang.Exception

testSessions

public void testSessions()
                  throws java.lang.Exception
Run tagsIncluded useTag rekey 1 yes (2) no no 2 no yes no 3 yes (2) yes no 4 no yes no 5 no yes no

Throws:
java.lang.Exception

testRekeying

public void testRekeying()
                  throws java.lang.Exception
Run tagsIncluded useTag rekey 1 yes (2) no no 2 no yes no 3 yes (2) yes yes 4 no yes no 5 no yes no

Throws:
java.lang.Exception

testLongSession

public void testLongSession()
                     throws java.lang.Exception
20 tags every 10 messages, rekey every 50

Throws:
java.lang.Exception

testLongSession

public void testLongSession(int numMsgs)
                     throws java.lang.Exception
Throws:
java.lang.Exception