|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.security.XTEA
public class XTEA
An implementation of the XTEA block cipher algorithm. This implementation uses 32 rounds.
Field Summary |
---|
Fields inherited from interface org.h2.security.BlockCipher |
---|
ALIGN |
Method Summary | |
---|---|
void |
decrypt(byte[] bytes,
int off,
int len)
Decrypt a number of bytes. |
void |
encrypt(byte[] bytes,
int off,
int len)
Encrypt a number of bytes. |
int |
getKeyLength()
Get the length of the key in bytes. |
void |
setKey(byte[] b)
Set the encryption key used for encrypting and decrypting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setKey(byte[] b)
BlockCipher
setKey
in interface BlockCipher
b
- the keypublic void encrypt(byte[] bytes, int off, int len)
BlockCipher
encrypt
in interface BlockCipher
bytes
- the byte arrayoff
- the start indexlen
- the number of bytes to encryptpublic void decrypt(byte[] bytes, int off, int len)
BlockCipher
decrypt
in interface BlockCipher
bytes
- the byte arrayoff
- the start indexlen
- the number of bytes to decryptpublic int getKeyLength()
BlockCipher
getKeyLength
in interface BlockCipher
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |