|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.SecureRandomSpi | +--gnu.crypto.jce.prng.SecureRandomAdapter
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.
Constructor Summary | |
protected |
SecureRandomAdapter(java.lang.String mdName)
Trivial protected constructor. |
Method Summary | |
byte[] |
engineGenerateSeed(int numBytes)
|
void |
engineNextBytes(byte[] bytes)
|
void |
engineSetSeed(byte[] seed)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SecureRandomAdapter(java.lang.String mdName)
Trivial protected constructor.
mdName
- the canonical name of the underlying hash algorithm.Method Detail |
public byte[] engineGenerateSeed(int numBytes)
engineGenerateSeed
in class java.security.SecureRandomSpi
public void engineNextBytes(byte[] bytes)
engineNextBytes
in class java.security.SecureRandomSpi
public void engineSetSeed(byte[] seed)
engineSetSeed
in class java.security.SecureRandomSpi
|
For the latest news and information visit The GNU Crypto project |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |