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
-
sha
-
-
CSRandomStream(byte[])
- Creates a new Cryptographically Secure Random Stream from a seed.
-
add(byte[])
- Add some entropy to the generator.
-
nextBuffer()
- Sets the internal buffer, length and pointer field to a new
set of random bits available for reading.
-
seed(byte[])
- Reset the seed and the PRNG.
sha
protected SHA sha
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.
nextBuffer
protected void nextBuffer()
- Sets the internal buffer, length and pointer field to a new
set of random bits available for reading.
seed
protected void seed(byte seed[])
- Reset the seed and the PRNG.
add
public synchronized void add(byte entropy[])
- Add some entropy to the generator.
All Packages Class Hierarchy This Package Previous Next Index