|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ccs.chaos.ChaosModel
public class ChaosModel
The state of the ChaosMage. The ChaosMage only exposes a (bowdlerised) copy of this over its API and never accepts one back, so it's OK that the members aren't protected with getter/setter pairs.
Field Summary | |
---|---|
byte[] |
cipherKey
Cipher key. |
long |
counter
Counter. |
double |
fastEntropy
Total estimated entropy in fast pool. |
byte[] |
fastPool
Hash state - effectively the entropy pool. |
int |
gateLeft
Blocks left before next generator gate. |
static int |
GATELENGTH
The number of blocks between generator gates. |
protected int |
marshalVersion
|
static int |
NEEDENTROPY
State value: reseed needed, but no entropy to do it. |
static int |
NEEDRESEED
State value: reseed needed, and at least minimal entropy is available. |
static int |
RUN
State value: generator OK, random blocks available. |
long |
runLeft
Blocks left before next reseed. |
static long |
RUNLENGTH
The maximum run length, in 64-bit blocks between reseeds. |
int |
status
The current generator state. |
Constructor Summary | |
---|---|
ChaosModel()
|
|
ChaosModel(ChaosModel cm)
Construct a bowdlerised copy of a ChaosModel. |
Method Summary | |
---|---|
void |
marshal(java.io.DataOutputStream dest)
|
void |
transientMarshal(java.io.DataOutputStream dos)
|
void |
transientUnmarshal(java.io.DataInputStream src)
|
void |
unmarshal(java.io.DataInputStream src)
|
void |
xmlMarshal(CXTStream cxt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long RUNLENGTH
public static final int GATELENGTH
public static final int NEEDENTROPY
public static final int NEEDRESEED
public static final int RUN
public long runLeft
public int gateLeft
public double fastEntropy
public int status
public byte[] fastPool
public byte[] cipherKey
public long counter
protected int marshalVersion
Constructor Detail |
---|
public ChaosModel()
public ChaosModel(ChaosModel cm)
Method Detail |
---|
public void xmlMarshal(CXTStream cxt) throws java.io.IOException
java.io.IOException
public void transientMarshal(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public void marshal(java.io.DataOutputStream dest) throws java.io.IOException
java.io.IOException
public void transientUnmarshal(java.io.DataInputStream src) throws java.io.IOException
java.io.IOException
public void unmarshal(java.io.DataInputStream src) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |