gnu.crypto.prng
Class MDGenerator
- Cloneable, IRandom
public class MDGenerator
implements Cloneable
A simple pseudo-random number generator that relies on a hash algorithm,
that (a) starts its operation by hashing a seed
, and then (b)
continuously re-hashing its output. If no hash algorithm name is specified
in the Map
of attributes used to initialise the instance then the
SHA-160 algorithm is used as the underlying hash function. Also, if no
seed
is given, an empty octet sequence is used.
static String | MD_NAME - Property name of underlying hash algorithm for this generator.
|
static String | SEEED - Property name of seed material.
|
addRandomByte , addRandomBytes , addRandomBytes , clone , fillBlock , init , isInitialised , name , nextByte , nextBytes , nextBytes , setup |
MD_NAME
public static final String MD_NAME
Property name of underlying hash algorithm for this generator.
SEEED
public static final String SEEED
Property name of seed material.
MDGenerator
public MDGenerator()
Trivial 0-arguments constructor.
setup
public void setup(Map attributes)
- setup in interface BasePRNG
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.