demo.cipher
Class RC2
java.lang.Object
|
+--demo.cipher.RC2
- public class RC2
- extends Object
This class tests the correctness of the RC2 implementation.
The test data is taken from SSLeay 0.8.1.
Generally the test data consist of plain text, cipher text and key data.
The test procedure can be devided into an encrypting and decrypting phase:
First the plain data is encrypted according to the selected IDEA-Mode and
compared with the given cipher data. The encrypting algorithm works correctly
if each block of the cipher data equals to the corresponding block of the encrypted
plain data.
Following this the cipher data is decrypted and compared with the input plain data.
This step prooves the correctness of the decrypting phase.
Constructor Summary |
RC2()
|
Method Summary |
static void |
main(String[] arg)
Performs some tests for RC2. |
void |
start()
Test the RC2. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RC2
public RC2()
start
public void start()
- Test the RC2.
main
public static void main(String[] arg)
- Performs some tests for RC2.
IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC