|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.GatherEntropy
public class GatherEntropy
GatherEntropy initializes the Fortuna PRNG with entropy data. GatherEntropy gets the media device configuration and checks which media systems are available. It then reads some data fom media input (capture) devices and uses this data to seed the Fortuna PRNG. The ZrtpFortuna PRNG is a singleton and all other methods that require random data shall use this singleton. Use GatherEntropy during startup and initialization phase of SIP Communicator but after initialization of the media devices to get entropy data at the earliest point. Also make sure that entropy data is read from local sources only and that entropy data is never send out (via networks for example).
| Constructor Summary | |
|---|---|
GatherEntropy(DeviceConfiguration deviceConfiguration)
Constructor. |
|
| Method Summary | |
|---|---|
protected int |
getGatheredEntropy()
|
static boolean |
isEntropyOk()
Get status of entropy flag. |
boolean |
setEntropy()
Set entropy to ZrtpFortuna singleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GatherEntropy(DeviceConfiguration deviceConfiguration)
deviceConfiguration - DeviceConfiguration needed to
initialize GatherEntropy| Method Detail |
|---|
public static boolean isEntropyOk()
protected int getGatheredEntropy()
public boolean setEntropy()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||