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.


Constructor Index

 o PRSG(byte[])
Creates a pseudo random number generator from a seed

Method Index

 o clock()
moves the internal state on one cycle.
 o toByteArray()
Creates a pseudo random number generator from a seed

Constructors

 o 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.

Methods

 o 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
 o clock
  public synchronized void clock()
moves the internal state on one cycle.

All Packages  Class Hierarchy  This Package  Previous  Next  Index