| org.h2.security.BlockCipher
All known Subclasses: org.h2.security.XTEA, org.h2.security.AES,
BlockCipher | public interface BlockCipher (Code) | | A block cipher is a data encryption algorithm that operates on blocks.
|
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[] key) Set the encryption key used for encrypting and decrypting. |
decrypt | void decrypt(byte[] bytes, int off, int len)(Code) | | Decrypt a number of bytes. This is done in-place, that
means the bytes are overwritten.
Parameters: bytes - the byte array Parameters: off - the start index Parameters: len - the number of bytes to decrypt |
encrypt | void encrypt(byte[] bytes, int off, int len)(Code) | | Encrypt a number of bytes. This is done in-place, that
means the bytes are overwritten.
Parameters: bytes - the byte array Parameters: off - the start index Parameters: len - the number of bytes to encrypt |
getKeyLength | int getKeyLength()(Code) | | Get the length of the key in bytes.
the length of the key |
setKey | void setKey(byte[] key)(Code) | | Set the encryption key used for encrypting and decrypting.
Parameters: key - the key |
|
|