public class ARCFour
extends tr.gov.tubitak.uekae.esya.api.common.crypto.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 java.lang.String |
ARCFOUR_KEY_MATERIAL
The attributes property name for the key bytes.
|
static int |
ARCFOUR_SBOX_SIZE
The size of the internal S-box.
|
| Constructor and Description |
|---|
ARCFour()
Default 0-arguments constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
fillBlock() |
void |
setup(java.util.Map attributes) |
public static final java.lang.String ARCFOUR_KEY_MATERIAL
public static final int ARCFOUR_SBOX_SIZE
public java.lang.Object clone()
clone in interface tr.gov.tubitak.uekae.esya.api.common.crypto.IRandomclone in class tr.gov.tubitak.uekae.esya.api.common.crypto.BasePRNGpublic void setup(java.util.Map attributes)
setup in class tr.gov.tubitak.uekae.esya.api.common.crypto.BasePRNGpublic void fillBlock()
throws tr.gov.tubitak.uekae.esya.api.common.crypto.LimitReachedException
fillBlock in class tr.gov.tubitak.uekae.esya.api.common.crypto.BasePRNGtr.gov.tubitak.uekae.esya.api.common.crypto.LimitReachedExceptionCopyright © 2025. All rights reserved.