Tnepres is based on Serpent which was designed by Ross Anderson, Eli Biham and Lars Knudsen as a candidate algorithm for the NIST AES Quest. Unfortunately there was an endianness issue with test vectors in the AES submission and the resulting confusion lead to the Tnepres cipher as well, which is a byte swapped version of Serpent.
For full details see The Serpent home page
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | decryptBlock(byte[]
the array containing the input data. input, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. output, int the offset into the out array the output will start at. outOff)Implements abstract org. |
| protected void | encryptBlock(byte[]
the array containing the input data. input, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. output, int the offset into the out array the output will start at. outOff)Implements abstract org. |
| public String | getAlgorithmName()
Overrides org. Implements org. |
| protected int[] | makeWorkingKey(byte[]
The user-key bytes (multiples of 4) to use. key)Implements abstract org. |
| TnepresEngine | back to summary |
|---|---|
| public TnepresEngine() | |
| decryptBlock | back to summary |
|---|---|
| protected void decryptBlock(byte[] input, int inOff, byte[] output, int outOff) Implements abstract org. Decrypt one block of ciphertext.
| |
| encryptBlock | back to summary |
|---|---|
| protected void encryptBlock(byte[] input, int inOff, byte[] output, int outOff) Implements abstract org. Encrypt one block of plaintext.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Overrides org. Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| makeWorkingKey | back to summary |
|---|---|
| protected int[] makeWorkingKey(byte[] key) throws IllegalArgumentException Implements abstract org. Expand a user-supplied key material into a session key.
| |