|
Gridarta Editor
|
Regression tests for Xtea. More...
Collaboration diagram for net.sf.gridarta.utils.XteaTest:Public Member Functions | |
| void | test () |
| Checks that basic encryption and decryption works. More... | |
Static Private Attributes | |
| static final byte [] | IPHERTEXT = { (byte) 0x06, (byte) 0x6a, (byte) 0xb0, (byte) 0x51, (byte) 0xf8, (byte) 0xa7, (byte) 0xa3, (byte) 0xc3 } |
| The expected ciphertext corresponding to KEY and PLAINTEXT. More... | |
| static final byte [] | KEY = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78, (byte) 0x9a, (byte) 0xbc, (byte) 0xde, (byte) 0xf0, (byte) 0x01, (byte) 0x23, (byte) 0x45, (byte) 0x67, (byte) 0x89, (byte) 0xab, (byte) 0xcd, (byte) 0xef } |
| The key for the test. More... | |
| static final byte [] | PLAINTEXT = { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04, (byte) 0x05, (byte) 0x06, (byte) 0x07, (byte) 0x08 } |
| The plaintext for the test. More... | |
Regression tests for Xtea.
Definition at line 31 of file XteaTest.java.
| void net.sf.gridarta.utils.XteaTest.test | ( | ) |
Checks that basic encryption and decryption works.
Definition at line 56 of file XteaTest.java.
References net.sf.gridarta.utils.Xtea.decrypt(), and net.sf.gridarta.utils.Xtea.encrypt().
Here is the call graph for this function:
|
staticprivate |
The expected ciphertext corresponding to KEY and PLAINTEXT.
Definition at line 50 of file XteaTest.java.
|
staticprivate |
The key for the test.
Definition at line 37 of file XteaTest.java.
|
staticprivate |
The plaintext for the test.
Definition at line 43 of file XteaTest.java.