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

Quick Search    Search Deep

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

java.lang.Object
  extended bycryptix.jce.test.Test
      extended bycryptix.jce.test.TestModeAndPadding

final class TestModeAndPadding
extends Test

This is a testclass for Modes and Padding using DES as algorithm as default

Version:
$Revision: 1.7 $

Field Summary
private  java.lang.String algo
           
private  javax.crypto.Cipher c
           
private  javax.crypto.Cipher d
           
private  int KEY_SIZE
           
private static java.lang.String name
           
private  java.lang.String s1
           
private  java.lang.String s2
           
private  javax.crypto.SecretKey sk
           
 
Fields inherited from class cryptix.jce.test.Test
 
Constructor Summary
protected TestModeAndPadding()
           
protected TestModeAndPadding(java.lang.String algo, int KEY_SIZE)
           
 
Method Summary
private  void changeMode(java.lang.String mode, java.lang.String padding)
           
protected  void doIt()
           
private  void init()
           
private  boolean test1(javax.crypto.Cipher c, javax.crypto.Cipher d, java.lang.String s)
           
private  boolean test2(javax.crypto.Cipher c, javax.crypto.Cipher d, java.lang.String s)
           
 
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

s1

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

s2

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

c

private javax.crypto.Cipher c

d

private javax.crypto.Cipher d

sk

private javax.crypto.SecretKey sk

algo

private java.lang.String algo

KEY_SIZE

private int KEY_SIZE
Constructor Detail

TestModeAndPadding

protected TestModeAndPadding(java.lang.String algo,
                             int KEY_SIZE)

TestModeAndPadding

protected TestModeAndPadding()
Method Detail

doIt

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

init

private void init()
           throws java.lang.Exception

changeMode

private void changeMode(java.lang.String mode,
                        java.lang.String padding)
                 throws java.lang.Exception

test1

private boolean test1(javax.crypto.Cipher c,
                      javax.crypto.Cipher d,
                      java.lang.String s)
               throws java.lang.Exception

test2

private boolean test2(javax.crypto.Cipher c,
                      javax.crypto.Cipher d,
                      java.lang.String s)
               throws java.lang.Exception