public class BaseRC4Cipher extends BaseCipher
Cipher.Mode, Cipher.Utils
Modifier and Type | Field and Description |
---|---|
static int |
SKIP_SIZE |
cipher
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
|
getAlgorithm, getBlockSize, getIVSize, getTransformation, resize, toString, update, update
public static final int SKIP_SIZE
public void init(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception
Cipher
init
in interface Cipher
init
in class BaseCipher
mode
- Encrypt/Decrypt initializationkey
- Key bytesiv
- Initialization vector bytesException
- If failed to initializeCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.