gnu.crypto.jce.prng
abstract class SecureRandomAdapter extends SecureRandomSpi
The implementation of a generic java.security.SecureRandom adapter class to wrap gnu.crypto prng instances based on Message Digest algorithms.
This class defines the Service Provider Interface (SPI) for the java.security.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.
Version: $Revision: 1.4 $
Constructor Summary | |
---|---|
protected | SecureRandomAdapter(String mdName) Trivial protected constructor. |
Method Summary | |
---|---|
byte[] | engineGenerateSeed(int numBytes) |
void | engineNextBytes(byte[] bytes) |
void | engineSetSeed(byte[] seed) |
Trivial protected constructor.
Parameters: mdName the canonical name of the underlying hash algorithm.