This implementation uses 32 rounds. The best attack reported as of 2009 is 36 rounds (Wikipedia).
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | decrypt(byte[]
the byte array bytes, int the start index off, int the number of bytes to decrypt len)Implements org. Decrypt a number of bytes. |
| private void | |
| public void | encrypt(byte[]
the byte array bytes, int the start index off, int the number of bytes to encrypt len)Implements org. Encrypt a number of bytes. |
| private void | |
| public int | getKeyLength()
Implements org. Get the length of the key in bytes. |
| public void | setKey(byte[]
the key b)Implements org. Set the encryption key used for encrypting and decrypting. |
| DELTA | back to summary |
|---|---|
| private static final int DELTA | |
| k0 | back to summary |
|---|---|
| private int k0 | |
| k1 | back to summary |
|---|---|
| private int k1 | |
| k10 | back to summary |
|---|---|
| private int k10 | |
| k11 | back to summary |
|---|---|
| private int k11 | |
| k12 | back to summary |
|---|---|
| private int k12 | |
| k13 | back to summary |
|---|---|
| private int k13 | |
| k14 | back to summary |
|---|---|
| private int k14 | |
| k15 | back to summary |
|---|---|
| private int k15 | |
| k16 | back to summary |
|---|---|
| private int k16 | |
| k17 | back to summary |
|---|---|
| private int k17 | |
| k18 | back to summary |
|---|---|
| private int k18 | |
| k19 | back to summary |
|---|---|
| private int k19 | |
| k2 | back to summary |
|---|---|
| private int k2 | |
| k20 | back to summary |
|---|---|
| private int k20 | |
| k21 | back to summary |
|---|---|
| private int k21 | |
| k22 | back to summary |
|---|---|
| private int k22 | |
| k23 | back to summary |
|---|---|
| private int k23 | |
| k24 | back to summary |
|---|---|
| private int k24 | |
| k25 | back to summary |
|---|---|
| private int k25 | |
| k26 | back to summary |
|---|---|
| private int k26 | |
| k27 | back to summary |
|---|---|
| private int k27 | |
| k28 | back to summary |
|---|---|
| private int k28 | |
| k29 | back to summary |
|---|---|
| private int k29 | |
| k3 | back to summary |
|---|---|
| private int k3 | |
| k30 | back to summary |
|---|---|
| private int k30 | |
| k31 | back to summary |
|---|---|
| private int k31 | |
| k4 | back to summary |
|---|---|
| private int k4 | |
| k5 | back to summary |
|---|---|
| private int k5 | |
| k6 | back to summary |
|---|---|
| private int k6 | |
| k7 | back to summary |
|---|---|
| private int k7 | |
| k8 | back to summary |
|---|---|
| private int k8 | |
| k9 | back to summary |
|---|---|
| private int k9 | |
| XTEA | back to summary |
|---|---|
| public XTEA() | |
| decrypt | back to summary |
|---|---|
| public void decrypt(byte[] bytes, int off, int len) Implements org. Doc from org. Decrypt a number of bytes. This is done in-place, that means the bytes are overwritten.
| |
| decryptBlock | back to summary |
|---|---|
| private void decryptBlock(byte[] in, byte[] out, int off) | |
| encrypt | back to summary |
|---|---|
| public void encrypt(byte[] bytes, int off, int len) Implements org. Doc from org. Encrypt a number of bytes. This is done in-place, that means the bytes are overwritten.
| |
| encryptBlock | back to summary |
|---|---|
| private void encryptBlock(byte[] in, byte[] out, int off) | |
| getKeyLength | back to summary |
|---|---|
| public int getKeyLength() Implements org. Doc from org. Get the length of the key in bytes.
| |
| setKey | back to summary |
|---|---|
| public void setKey(byte[] b) Implements org. Doc from org. Set the encryption key used for encrypting and decrypting. The key needs to be 16 bytes long.
| |