|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockCipher
A block cipher is a data encryption algorithm that operates on blocks.
Field Summary | |
---|---|
static int |
ALIGN
Blocks sizes are always multiples of this number. |
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. |
Field Detail |
---|
static final int ALIGN
Method Detail |
---|
void setKey(byte[] key)
key
- the keyvoid encrypt(byte[] bytes, int off, int len)
bytes
- the byte arrayoff
- the start indexlen
- the number of bytes to encryptvoid decrypt(byte[] bytes, int off, int len)
bytes
- the byte arrayoff
- the start indexlen
- the number of bytes to decryptint getKeyLength()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |