| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private int[] | |
| private int[] | |
| private int[] | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| public String | getAlgorithmName()
Implements org. |
| public int | getBlockSize()
Implements org. |
| public void | init(boolean
whether or not we are for encryption. forEncryption, CipherParameters the parameters required to set up the cipher. params)Implements org. |
| public int | processBlock(byte[]
the array containing the input data. in, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. out, int the offset into the out array the output will start at. outOff)Implements org. |
| public void | |
| private void | |
| private void |
| _forEncryption | back to summary |
|---|---|
| private boolean _forEncryption | |
| _initialised | back to summary |
|---|---|
| private boolean _initialised | |
| _S | back to summary |
|---|---|
| private int[] _S | |
| _sum0 | back to summary |
|---|---|
| private int[] _sum0 | |
| _sum1 | back to summary |
|---|---|
| private int[] _sum1 | |
| block_size | back to summary |
|---|---|
| private static final int block_size | |
| delta | back to summary |
|---|---|
| private static final int delta | |
| rounds | back to summary |
|---|---|
| private static final int rounds | |
| XTEAEngine | back to summary |
|---|---|
| public XTEAEngine() Create an instance of the TEA encryption algorithm and set some defaults | |
| bytesToInt | back to summary |
|---|---|
| private int bytesToInt(byte[] in, int inOff) | |
| decryptBlock | back to summary |
|---|---|
| private int decryptBlock(byte[] in, int inOff, byte[] out, int outOff) | |
| encryptBlock | back to summary |
|---|---|
| private int encryptBlock(byte[] in, int inOff, byte[] out, int outOff) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Doc from org. Return the block size for this cipher (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) Implements org. initialise
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] in, int inOff, byte[] out, int outOff) Implements org. Doc from org. Process one block of input from the array in and write it to the out array.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| setKey | back to summary |
|---|---|
| private void setKey(byte[] key) Re-key the cipher.
| |
| unpackInt | back to summary |
|---|---|
| private void unpackInt(int v, byte[] out, int outOff) | |