Modifier and Type | Field and Description |
---|---|
static int |
ALIGN
Blocks sizes are always multiples of this number.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final int ALIGN
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()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.