public class BaseRC4Cipher extends BaseCipher
Cipher.Mode| Modifier and Type | Field and Description |
|---|---|
static int |
SKIP_SIZE |
mode| Constructor and Description |
|---|
BaseRC4Cipher(int ivsize,
int kdfSize,
int keySize,
int blkSize) |
| Modifier and Type | Method and Description |
|---|---|
protected Cipher |
createCipherInstance(Cipher.Mode mode,
byte[] key,
byte[] iv) |
protected byte[] |
initializeIVData(Cipher.Mode mode,
byte[] iv,
int reqLen) |
void |
update(byte[] input,
int inputOffset,
int inputLen)
Performs in-place encryption or decryption on the given data.
|
determineNewParameters, getAlgorithm, getAuthenticationTagSize, getCipherBlockSize, getCipherInstance, getIVSize, getKdfSize, getKeySize, getTransformation, init, initializeKeyData, reInit, resize, toString, updateAADclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckSupported, update, updateAAD, updateWithAADpublic static final int SKIP_SIZE
public BaseRC4Cipher(int ivsize,
int kdfSize,
int keySize,
int blkSize)
protected byte[] initializeIVData(Cipher.Mode mode, byte[] iv, int reqLen)
initializeIVData in class BaseCipherprotected Cipher createCipherInstance(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception
createCipherInstance in class BaseCipherExceptionpublic void update(byte[] input,
int inputOffset,
int inputLen)
throws Exception
Cipherupdate in interface Cipherupdate in class BaseCipherinput - The input/output bytesinputOffset - The offset of the data in the data bufferinputLen - The number of bytes to update, starting at the given offset; must be a multiple of the
cipher's block sizeException - If failed to executeCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.