Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.jce.test
Class TestSerpent  view TestSerpent download TestSerpent.java

java.lang.Object
  extended bycryptix.jce.test.Test
      extended bycryptix.jce.test.CipherTest
          extended bycryptix.jce.test.TestSerpent

final class TestSerpent
extends CipherTest


Field Summary
private static java.lang.String NAME
           
private static java.lang.String[][] TEST_VALUES
           
 
Fields inherited from class cryptix.jce.test.Test
 
Constructor Summary
protected TestSerpent()
           
 
Method Summary
protected  void doIt()
           
protected  void testCipher(java.lang.String[][] testValues)
           
protected  void testExistence(java.lang.String alg)
           
protected  void testKeyGenExistence(java.lang.String alg)
           
protected  void testKeyGenWorks(java.lang.String alg)
          Test whether the KeyGenerator for this algorithm works.
protected  void testValuesCFB(java.lang.String alg, java.lang.String[][] testValues)
           
protected  void testValuesECB(java.lang.String alg, java.lang.String[][] testValues)
           
 
Methods inherited from class cryptix.jce.test.Test
beginTest, main, passIf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

TEST_VALUES

private static final java.lang.String[][] TEST_VALUES
Constructor Detail

TestSerpent

protected TestSerpent()
Method Detail

doIt

protected void doIt()
             throws java.lang.Exception
Specified by:
doIt in class Test

testExistence

protected void testExistence(java.lang.String alg)
                      throws java.lang.Exception

testValuesCFB

protected void testValuesCFB(java.lang.String alg,
                             java.lang.String[][] testValues)
                      throws java.lang.Exception

testValuesECB

protected void testValuesECB(java.lang.String alg,
                             java.lang.String[][] testValues)
                      throws java.lang.Exception

testKeyGenExistence

protected void testKeyGenExistence(java.lang.String alg)
                            throws java.lang.Exception

testKeyGenWorks

protected void testKeyGenWorks(java.lang.String alg)
                        throws java.lang.Exception
Test whether the KeyGenerator for this algorithm works. Try and generate a lot of keys and for each key test whether x = Dk(Ek(x)).


testCipher

protected void testCipher(java.lang.String[][] testValues)
                   throws java.lang.Exception