|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntropyHarvester
Allow various components with some entropy to feed that entropy back into some PRNG. The quality of the entropy provided varies, so anything harvesting should discriminate based on the offered "source" of the entropy, silently discarding insufficient entropy sources.
Method Summary | |
---|---|
void |
feedEntropy(java.lang.String source,
byte[] data,
int offset,
int len)
Feed the entropy pools with data[offset:offset+len] |
void |
feedEntropy(java.lang.String source,
long data,
int bitoffset,
int bits)
Feed the entropy pools with the bits in the data |
Method Detail |
---|
void feedEntropy(java.lang.String source, byte[] data, int offset, int len)
source
- origin of the entropy, allowing the harvester to
determine how much to value the dataoffset
- index into the data array to startlen
- how many bytes to usevoid feedEntropy(java.lang.String source, long data, int bitoffset, int bits)
source
- origin of the entropy, allowing the harvester to
determine how much to value the databitoffset
- bit index into the data array to start
(using java standard big-endian)bits
- how many bits to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |