gnu.crypto.jce.prng
Class SecureRandomAdapter
SecureRandomSpi
gnu.crypto.jce.prng.SecureRandomAdapter
(package private) abstract class SecureRandomAdapter
extends SecureRandomSpi
The implementation of a generic
SecureRandom
adapter
class to wrap gnu.crypto prng instances based on Message Digest algorithms.
This class defines the
Service Provider Interface (
SPI) for
the
SecureRandom
class, which provides the
functionality of a cryptographically strong pseudo-random number generator.
All the abstract methods in the
SecureRandomSpi
class are
implemented by this class and all its sub-classes.
SecureRandomAdapter
protected SecureRandomAdapter(String mdName)
Trivial protected constructor.
mdName
- the canonical name of the underlying hash algorithm.
engineGenerateSeed
public byte[] engineGenerateSeed(int numBytes)
engineNextBytes
public void engineNextBytes(byte[] bytes)
engineSetSeed
public void engineSetSeed(byte[] seed)
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.