public class BaseRC4Cipher extends BaseCipher
Cipher.Mode| 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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckSupported, 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–2017 The Apache Software Foundation. All rights reserved.