cryptix.tools
public final class KAT extends Object
KAT's output file format is in conformance with the layout described in Section 3 of NIST's document "Description of Known Answer Tests and Monte Carlo Tests for Advanced Encryption Standard (AES) Candidate Algorithm Submissions" dated January 7, 1998.
If the -p argument is not specified, this command assumes that the name of the designated cipher algorithm is also that of its Security Provider. It always tries processing the user's request using Java Reflection API methods on an XXX_Algorithm class, if such a class exists --XXX being the name of the AES candidate algorithm. When such a class exists, it is assumed to include the following static methods:
The duality of functionalities are there for performance reasons since speed is faster with the Reflection API than with the IJCE one --on a Pentium 133MHz, without JIT, using JDK-1.1.5 Reflection API brings more than 10% speed improvement.
Copyright © 1998
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.6 $
Nested Class Summary | |
---|---|
class | KAT.KAT_Key |
Field Summary | |
---|---|
Class | algorithm |
Method | blockSize |
Cipher | cipher |
String | cipherName |
long | decBlocks |
Method | decrypt |
File | destination |
String | dirName |
long | encBlocks |
Method | encrypt |
long | keyCount |
String | keylengths |
int[] | keys |
Method | makeKey |
String | provider |
static String | SUBMITTER |
boolean | useReflection |
boolean | varKey |
boolean | varText |
String | vkFileName |
String | vtFileName |
static String | VERSION |
Method Summary | |
---|---|
static void | halt(String s)
Print an error message to System.err and halts execution returning
-1 to the JVM.
|
static void | main(String[] args) |
static void | notify(String s)
Write a notification message to System.out.
|
void | printUsage() write help text and quit. |
void | run() main action. |
void | vkForKeyIjce(int keysize, PrintWriter out) |
void | vkForKeyReflect(int keysize, PrintWriter out) |
void | vkKAT(String fileName) |
void | vtForKeyIjce(int keysize, PrintWriter out) |
void | vtForKeyReflect(int keysize, PrintWriter out) |
void | vtKAT(String fileName) |
Parameters: s a message to output on System.err
Parameters: s string to output to System.out.