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

Quick Search    Search Deep

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

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

final class TestDES
extends CipherTest


Field Summary
private static java.lang.String NAME
           
private static java.lang.String[][] TEST_VALUES_CFB
           
private static java.lang.String[][] TEST_VALUES_CFB8
           
private static java.lang.String[][] TEST_VALUES_ECB
           
 
Fields inherited from class cryptix.jce.test.Test
 
Constructor Summary
protected TestDES()
           
 
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_CFB

private static final java.lang.String[][] TEST_VALUES_CFB

TEST_VALUES_CFB8

private static final java.lang.String[][] TEST_VALUES_CFB8

TEST_VALUES_ECB

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

TestDES

protected TestDES()
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