public abstract class FIPS186Random extends SecRandom
This pseudo random works according to FIPS PUB 186-2 with an hash
function as one-way function G(t,c)
. As this is a
general purpose random generator, the mod q
operation is omitted. As a consequence of omitting this modulo
operation, the changes to the FIPS PUB 186-2 pseudo random generator
need not be considered, because they have no influence in this case.
The concrete classes are derived from this class and provide a raw hash algorithm. The raw hash provides access to the raw compression function. This algorithm requires a raw hash rather than a complete hash, because this FIPS algorithm operates on the compression function part and not on the complete hash function. The complete hash function includes a certain padding, which this algorithm does not; it simply appends zeros up to the required block size.
SHA1FIPS186Random
,
SHA256FIPS186Random
,
SHA384FIPS186Random
,
SHA512FIPS186Random
,
RipeMd160FIPS186Random
,
SeedGenerator
,
Serialized FormgetAlgorithm, getDefault, setDefault, setDefault, setSeed
generateSeed, getInstance, getInstance, getInstance, getProvider, getSeed, next, nextBytes, setSeed, setSeed