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.
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 |
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 void testCipher(String name,
int n,
byte[][] tKey,
byte[][] tIV,
byte[][] tPlain,
byte[][] tCipher)
main0
protected static void main0(TCipher cipher,
String[] arg)
IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC