Class cryptix.security.CSRandomStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.security.CSRandomStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----cryptix.math.RandomStream
                   |
                   +----cryptix.math.PseudoRandomStream
                           |
                           +----cryptix.security.CSRandomStream

public class CSRandomStream
extends PseudoRandomStream
A class that generates random bytes using a psudeo random number generator.

References

Copyright © 1995, 1996, 1997 Systemics Ltd on behalf of the Cryptix Development Team. All rights reserved.

Author:
Systemics Ltd

Variable Index

 o sha

Constructor Index

 o CSRandomStream(byte[])
creates a new Cryptographically Secure Random Stream from a seed.

Method Index

 o add(byte[])
Add some entropy to the generator.
 o nextBuffer()
Sets the internal buffer, length and pointer field to a new set of random bits available for reading
 o seed(byte[])
Reset the seed and the PRNG.

Variables

 o sha
  protected SHA sha

Constructors

 o CSRandomStream
  public CSRandomStream(byte seed[])
creates a new Cryptographically Secure Random Stream from a seed. the security of this generator relies on a good seed

Methods

 o nextBuffer
  protected void nextBuffer()
Sets the internal buffer, length and pointer field to a new set of random bits available for reading
Overrides:
nextBuffer in class PseudoRandomStream
 o seed
  protected void seed(byte seed[])
Reset the seed and the PRNG.
Overrides:
seed in class PseudoRandomStream
 o add
  public synchronized void add(byte entropy[])
Add some entropy to the generator.

All Packages  Class Hierarchy  This Package  Previous  Next  Index