public final class EncryptionXTEA extends Object
This implementation uses 32 rounds. The best attack reported as of 2009 is 36 rounds (Wikipedia).
It requires 32 byte long encryption key, so SHA256 password hash is used.Modifier and Type | Field and Description |
---|---|
static int |
ALIGN
Blocks sizes are always multiples of this number.
|
Constructor and Description |
---|
EncryptionXTEA(byte[] password) |
Modifier and Type | Method and Description |
---|---|
void |
decrypt(byte[] bytes,
int off,
int len) |
void |
encrypt(byte[] bytes,
int off,
int len) |
static byte[] |
getHash(byte[] data)
Calculate the hash code for the given data.
|
public static final int ALIGN
Copyright © 2015. All rights reserved.