Class cryptix.pgp.FileRandomStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.FileRandomStream

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

public class FileRandomStream
extends CSRandomStream
This class *may* be useful in an applet, but it is unlikely. The browser should really be responsible for providing random streams for applets.

The gui is a better source of entropy for applets than the methods here, but is not included here since Cryptix is non gui.

Still, this class is usable by applets, hence all the exception handling.


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


Constructor Index

 o FileRandomStream()
 o FileRandomStream(File)

Method Index

 o add(byte[])
Add some entropy to the generator.
 o finalize()
 o init(File)
 o main(String[])
 o readSeedFile()
 o updateSeedFile()

Constructors

 o FileRandomStream
  public FileRandomStream() throws IOException
 o FileRandomStream
  public FileRandomStream(File seed_file) throws IOException

Methods

 o init
  public void init(File seed_file) throws IOException
 o finalize
  protected void finalize()
Overrides:
finalize in class Object
 o add
  public void add(byte entropy[])
Add some entropy to the generator.
Overrides:
add in class CSRandomStream
 o readSeedFile
  public synchronized void readSeedFile()
 o updateSeedFile
  public synchronized void updateSeedFile() throws IOException
 o main
  public final static void main(String argv[]) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index