public class BaseRC4Cipher extends BaseCipher
Cipher.Mode| Modifier and Type | Field and Description |
|---|---|
static int |
SKIP_SIZE |
algorithm, bsize, cipher, ivsize, transformation| Constructor and Description |
|---|
BaseRC4Cipher(int ivsize,
int bsize) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Cipher.Mode mode,
byte[] key,
byte[] iv)
Initialize the cipher for encryption or decryption with
the given key and initialization vector
|
getBlockSize, getIVSize, resize, toString, update, updatepublic static final int SKIP_SIZE
public void init(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception
Cipherinit in interface Cipherinit in class BaseCiphermode - Encrypt/Decrypt initializationkey - Key bytesiv - Initialization vector bytesException - If failed to initializeCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.