demo.cipher
Class  TCipher
java.lang.Object
  |
  +--demo.cipher.TCipher
- Direct Known Subclasses: 
- IDEA, MARS, RC6, Rijndael, Rijndael256, Serpent, Twofish
- public abstract class TCipher- extends Object
This class provides a framework for cipher self-tests.
- Version: 
- File Revision  14 
 
| 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  boolean | testCipher(String algorithm,
           byte[] key,
           int opmode,
           byte[] iv,
           byte[] plainData,
           byte[] cipherData)
 | 
| protected  void | testCipher(String name,
           int n,
           byte[][] tKey,
           byte[][] tIV,
           byte[][] tPlain,
           byte[][] tCipher)
 | 
| protected  void | testCipher(String name,
           int n,
           byte[][] tKey,
           int[] opmode,
           byte[][] tIV,
           byte[][] tPlain,
           byte[][] tCipher)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ECB
public static final int ECB
CBC
public static final int CBC
CTR
public static final int CTR
testDecryption
protected boolean testDecryption
TCipher
protected TCipher()
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 boolean testCipher(String algorithm,
                             byte[] key,
                             int opmode,
                             byte[] iv,
                             byte[] plainData,
                             byte[] cipherData)
                      throws Exception
testCipher
protected void testCipher(String name,
                          int n,
                          byte[][] tKey,
                          byte[][] tIV,
                          byte[][] tPlain,
                          byte[][] tCipher)
testCipher
protected void testCipher(String name,
                          int n,
                          byte[][] tKey,
                          int[] opmode,
                          byte[][] tIV,
                          byte[][] tPlain,
                          byte[][] tCipher)
main0
protected static void main0(TCipher cipher,
                            String[] arg)
|  | This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | 
| PREV CLASS 
 NEXT CLASS | FRAMES   
 NO FRAMES | 
| SUMMARY:  INNER | FIELD | CONSTR | METHOD | DETAIL:  FIELD | CONSTR | METHOD | 
 IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK
  IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK