|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.math.PRSG
A pseudo-random sequence generator based on a 160-bit LFSR (this is not a cryptographically secure generator).
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
Field Summary | |
(package private) int |
i0
|
(package private) int |
i1
|
(package private) int |
i2
|
(package private) int |
i3
|
(package private) int |
i4
|
Constructor Summary | |
PRSG(byte[] b)
Creates a pseudo random number generator from the seed b. |
Method Summary | |
void |
clock()
Moves the internal state on one cycle. |
byte[] |
toByteArray()
Returns the current state of the generator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int i0
int i1
int i2
int i3
int i4
Constructor Detail |
public PRSG(byte[] b)
b
- the seed for this generator
MathError
- if the seed is less than 20 bytes.Method Detail |
public byte[] toByteArray()
public void clock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |