public class MDGenerator
extends tr.gov.tubitak.uekae.esya.api.common.crypto.BasePRNG
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MD_NAME
Property name of underlying hash algorithm for this generator.
|
static java.lang.String |
SEEED_GENERATOR
Property name of seed material.
|
static java.lang.String |
SEEED_LENGTH |
| Constructor and Description |
|---|
MDGenerator()
Trivial 0-arguments constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
fillBlock() |
void |
setup(java.util.Map attributes) |
public static final java.lang.String MD_NAME
public static final java.lang.String SEEED_GENERATOR
public static final java.lang.String SEEED_LENGTH
public java.lang.Object clone()
clone in interface tr.gov.tubitak.uekae.esya.api.common.crypto.IRandomclone in class tr.gov.tubitak.uekae.esya.api.common.crypto.BasePRNGpublic void setup(java.util.Map attributes)
setup in class tr.gov.tubitak.uekae.esya.api.common.crypto.BasePRNGpublic void fillBlock()
throws tr.gov.tubitak.uekae.esya.api.common.crypto.LimitReachedException
fillBlock in class tr.gov.tubitak.uekae.esya.api.common.crypto.BasePRNGtr.gov.tubitak.uekae.esya.api.common.crypto.LimitReachedExceptionCopyright © 2025. All rights reserved.