All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.math.PseudoRandomStream

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

public class PseudoRandomStream
extends RandomStream
A class that produces pseudo-random bytes.

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

$Revision: 1.1.1.1 $

Author:
unattributed

Variable Index

 o buf
 o len
 o prng
 o ptr

Constructor Index

 o PseudoRandomStream(byte[])
seed must be 20 bytes or greater (any excess is not used).

Method Index

 o nextBuffer()
 o nextByte()
 o seed(byte[])

Variables

 o prng
 protected PRSG prng
 o buf
 protected byte buf[]
 o ptr
 protected int ptr
 o len
 protected int len

Constructors

 o PseudoRandomStream
 public PseudoRandomStream(byte seed[])
seed must be 20 bytes or greater (any excess is not used).

Methods

 o seed
 protected void seed(byte seed[])
Overrides:
seed in class RandomStream
 o nextBuffer
 protected void nextBuffer()
 o nextByte
 protected final synchronized byte nextByte()
Overrides:
nextByte in class RandomStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index