public class ARCFour extends BasePRNG
This class only implements the keystream of ARCFOUR. To use this as a stream cipher, one would say:
out = in ^ arcfour.nextByte();
This operation works for encryption and decryption.
References:
| Modifier and Type | Field and Description |
|---|---|
static String |
ARCFOUR_KEY_MATERIAL
The attributes property name for the key bytes.
|
static int |
ARCFOUR_SBOX_SIZE
The size of the internal S-box.
|
buffer, initialised, name, ndx| Constructor and Description |
|---|
ARCFour()
Default 0-arguments constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a clone copy of this instance.
|
void |
fillBlock() |
void |
setup(Map attributes) |
public static final String ARCFOUR_KEY_MATERIAL
public static final int ARCFOUR_SBOX_SIZE
public Object clone()
IRandomReturns a clone copy of this instance.
public void fillBlock()
throws LimitReachedException
fillBlock in class BasePRNGLimitReachedExceptionCopyright © 2017 LSST. All rights reserved.