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
-
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
- Overrides:
- nextBuffer in class PseudoRandomStream
seed
protected void seed(byte seed[])
- Reset the seed and the PRNG.
- Overrides:
- seed in class PseudoRandomStream
add
public synchronized void add(byte entropy[])
- Add some entropy to the generator.
All Packages Class Hierarchy This Package Previous Next Index