Class cryptix.math.PRSG
All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.math.PRSG
java.lang.Object
|
+----cryptix.math.PRSG
- public final class PRSG
- extends Object
A pseudo random sequence generator
based on a 160 bit LFSR
Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
All rights reserved.
-
PRSG(byte[])
- Creates a pseudo random number generator from a seed
-
clock()
- moves the internal state on one cycle.
-
toByteArray()
- Creates a pseudo random number generator from a seed
PRSG
public PRSG(byte b[])
- Creates a pseudo random number generator from a seed
- Parameters:
- b - the seed for this generator
- Throws: MathError
- if the seed is less that 20 bytes.
toByteArray
public synchronized byte[] toByteArray()
- Creates a pseudo random number generator from a seed
- Returns:
- a twenty byte array representing the current state of the generator
clock
public synchronized void clock()
- moves the internal state on one cycle.
All Packages Class Hierarchy This Package Previous Next Index