gnu.crypto.jce.prng

Class SecureRandomAdapter

Known Direct Subclasses:
HavalRandomSpi, MD2RandomSpi, MD4RandomSpi, MD5RandomSpi, RipeMD128RandomSpi, RipeMD160RandomSpi, Sha160RandomSpi, Sha256RandomSpi, Sha384RandomSpi, Sha512RandomSpi, TigerRandomSpi, WhirlpoolRandomSpi

(package private) 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.3 $

Constructor Summary

SecureRandomAdapter(String mdName)
Trivial protected constructor.

Method Summary

byte[]
engineGenerateSeed(int numBytes)
void
engineNextBytes(byte[] bytes)
void
engineSetSeed(byte[] seed)

Constructor Details

SecureRandomAdapter

protected SecureRandomAdapter(String mdName)
Trivial protected constructor.

Parameters:
mdName - the canonical name of the underlying hash algorithm.

Method Details

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.