All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.security.CSRandomStream

cryptix.security.CSRandomStream

public class CSRandomStream
Note: CSRandomStream is deprecated.

A class that generates random bytes using a pseudo random number generator.

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

$Revision: 1.1 $

Author:
Systemics Ltd, David Hopwood
See Also:
SecureRandom

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.

 o seed
 protected void seed(byte seed[])
Reset the seed and the PRNG.

 o add
 public synchronized void add(byte entropy[])
Add some entropy to the generator.


All Packages  Class Hierarchy  This Package  Previous  Next  Index