public class Fog extends Object implements BlockCipher
ALIGN
Constructor and Description |
---|
Fog() |
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.
|
public 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
public void setKey(byte[] key)
BlockCipher
setKey
in interface BlockCipher
key
- the keyCopyright © 2012 JBoss by Red Hat. All Rights Reserved.