Top Description Constructors Methods
org.bouncycastle.crypto.prng

public Class EntropyUtil

extends Object
Class Inheritance

Utility methods for making use of EntropySources.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static byte[]

Returns:

a byte array populated with the random data.
generateSeed
(EntropySource
the entropy source to request the data from.
entropySource
,
int
the number of bytes of entropy requested.
numBytes
)

Generate numBytes worth of entropy from the passed in entropy source.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EntropyUtilback to summary
public EntropyUtil()

Method Detail

generateSeedback to summary
public static byte[] generateSeed(EntropySource entropySource, int numBytes)

Generate numBytes worth of entropy from the passed in entropy source.

Parameters
entropySource:EntropySource

the entropy source to request the data from.

numBytes:int

the number of bytes of entropy requested.

Returns:byte[]

a byte array populated with the random data.