All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----cryptix.provider.rpk.MixerGenerator
Generator
s. The first of these acts as a
mixer --the register that is used to clock and select
output, bit by bit, from one of the two sub-generators.
References:
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
this
object with random data generated from a
designated source.
this
contains the designated argument,
or an object of equal contents.
Generator
at the
designated index position.
this
object's constituants.
Enumeration
object of the Generator
s
in this MixerGenerator
.
this
.
count
bits of output and return them
right-aligned in a java long.
Generator
in this object (including
the mixer) set the underlying LFSR's initial state
to a value that corresponds to the coefficients of a
polynomial of a given degree.
this
object's constituants.
String
representation of the binary
contents of this
.
public MixerGenerator(int specs[][])
this
, the first of which will be used as the
mixer/selector.
public Object clone()
public long next(int count)
count
bits of output and return them
right-aligned in a java long.
The choice of which Generator
will provide the next
bit of oputput is selected based on the output value of the
mixer --Generator
at index 0. If its output is
0, the first sub-generator is used, otherwise it's the
second.
count
output sequence,
if argument is greater than 64, otherwise the value of
count
bits.
public void resetX(int degree)
Generator
in this object (including
the mixer) set the underlying LFSR's initial state
to a value that corresponds to the coefficients of a
polynomial of a given degree.
public void atRandom(SecureRandom source)
this
object with random data generated from a
designated source.
public boolean contains(Generator x)
this
contains the designated argument,
or an object of equal contents.
this
contains the designated argument,
or an object of equal contents.
public boolean isSameValue(MixerGenerator x)
NOTE: the equals
method is not used, because this is
a mutable object (see the requirements for equals in the Java Language
Spec).
MixerGenerator
of
equal contents, ordered in the same manner.
public boolean isSameGroup(MixerGenerator x)
public int getSize()
public byte[] getEncoded()
this
object's constituants.
this
object as a byte array
or null if an error occured.
public byte[] toByteArray()
this
object's constituants.
this
object as a
byte array or null if an error occured.
public void load(byte source[])
this
.
This format mirrors that of the output returned by the
toByteArray()
method.
public Generator generatorAt(int index)
Generator
at the
designated index position.
Generator
at the
designated index position.
public synchronized Enumeration listOfGenerators()
Enumeration
object of the Generator
s
in this MixerGenerator
.
Use the java.util.Enumeration
methods on the
returned object to fetch the generators sequentially. Note however
that no guarrantees are given with regard to the order of the
returned sequence. If the order is important, use the
generatorAt()
method.
Generator
s in
this
object.
public String toString()
String
representation of the binary
contents of this
.
this
.
All Packages Class Hierarchy This Package Previous Next Index