demo.cipher.aes
Class AESTest

java.lang.Object
  |
  +--demo.cipher.aes.AESTest

public class AESTest
extends Object

This class tests the 5 AES candidate algorithms using the official test files. The location of these can be specified by changing the DIR_xxx definition in the source. Note that these are extensive test, you should be prepared for at least 5 minutes per algorithm on a reasonable fast machine and much more on a slow machine or without a JIT.

Version:
File Revision 23

Field Summary
static int BYTEORDER_REV
           
static int BYTEORDER_STD
           
static int MODE_BOTH
           
static int MODE_DEC
           
static int MODE_ENC
           
static int OPMODE_CBC
           
static int OPMODE_ECB
           
static int TYPE_KAT
           
static int TYPE_MCT
           
 
Constructor Summary
AESTest(String algorithmName, InputStream in, int type, int mode, int opmode)
           
AESTest(String algorithmName, InputStream in, int type, int mode, int opmode, int byteorder)
           
AESTest(String algorithmName, String filename, int type, int mode, int opmode)
           
AESTest(String algorithmName, String filename, int type, int mode, int opmode, int byteorder)
           
AESTest(String algorithmName, String directory, String filename)
           
AESTest(String algorithmName, String directory, String filename, int byteorder)
           
 
Method Summary
static void main(String[] args)
          Test all the algorithms.
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_ENC

public static final int MODE_ENC

MODE_DEC

public static final int MODE_DEC

MODE_BOTH

public static final int MODE_BOTH

TYPE_KAT

public static final int TYPE_KAT

TYPE_MCT

public static final int TYPE_MCT

OPMODE_ECB

public static final int OPMODE_ECB

OPMODE_CBC

public static final int OPMODE_CBC

BYTEORDER_STD

public static final int BYTEORDER_STD

BYTEORDER_REV

public static final int BYTEORDER_REV
Constructor Detail

AESTest

public AESTest(String algorithmName,
               String directory,
               String filename)
        throws IOException

AESTest

public AESTest(String algorithmName,
               String directory,
               String filename,
               int byteorder)
        throws IOException

AESTest

public AESTest(String algorithmName,
               String filename,
               int type,
               int mode,
               int opmode)
        throws IOException

AESTest

public AESTest(String algorithmName,
               InputStream in,
               int type,
               int mode,
               int opmode)

AESTest

public AESTest(String algorithmName,
               String filename,
               int type,
               int mode,
               int opmode,
               int byteorder)
        throws IOException

AESTest

public AESTest(String algorithmName,
               InputStream in,
               int type,
               int mode,
               int opmode,
               int byteorder)
Method Detail

start

public void start()

main

public static void main(String[] args)
Test all the algorithms.

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).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK