demo.cipher
Class TCipher

java.lang.Object
  |
  +--demo.cipher.TCipher
Direct Known Subclasses:
IDEA, Rijndael

public abstract class TCipher
extends Object

This class provides a framework for cipher self-tests.


Field Summary
protected  boolean testDecryption
           
 
Constructor Summary
protected TCipher()
           
 
Method Summary
protected  void addProvider()
           
protected static void main0(TCipher cipher, String[] arg)
           
protected abstract  void start()
           
protected  boolean testCipher(String algorithm, byte[] key, byte[] iv, byte[] plainData, byte[] cipherData)
           
protected  void testCipher(String name, int n, byte[][] tKey, byte[][] tIV, byte[][] tPlain, byte[][] tCipher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testDecryption

protected boolean testDecryption
Constructor Detail

TCipher

protected TCipher()
Method Detail

start

protected abstract void start()

addProvider

protected void addProvider()

testCipher

protected boolean testCipher(String algorithm,
                             byte[] key,
                             byte[] iv,
                             byte[] plainData,
                             byte[] cipherData)
                      throws Exception

testCipher

protected void testCipher(String name,
                          int n,
                          byte[][] tKey,
                          byte[][] tIV,
                          byte[][] tPlain,
                          byte[][] tCipher)

main0

protected static void main0(TCipher cipher,
                            String[] arg)

This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note).

IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC