java.lang.Object
cryptix.jce.test.Test
cryptix.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 $
Fields inherited from class cryptix.jce.test.Test |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TestModeAndPadding
protected TestModeAndPadding(java.lang.String algo,
int KEY_SIZE)
TestModeAndPadding
protected TestModeAndPadding()
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