|
SunSPOT host API V3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.security.signing.PseudoRand
public final class PseudoRand
Implements a pseudo random number generator.
| Constructor Summary | |
|---|---|
PseudoRand()
Constructor for random data. |
|
| Method Summary | |
|---|---|
void |
generateData(byte[] b,
int off,
int len)
This does a reasonable job of producing unpredictable random data by using a one way hash as a mixing function and the current time in milliseconds as a source of entropy. |
void |
setSeed(byte[] b,
int off,
int len)
Set the random number seed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PseudoRand()
throws CryptoException
CryptoException| Method Detail |
|---|
public void generateData(byte[] b,
int off,
int len)
b - buffer of input dataoff - offset into the provided bufferlen - length of the data to be processed
public void setSeed(byte[] b,
int off,
int len)
b - initial data to use as the seedoff - offset into the provided bufferlen - length of the data to be used
|
SunSPOT host API V3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||