|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.crypto.generators.DHParametersGenerator
public class DHParametersGenerator
Constructor Summary | |
---|---|
DHParametersGenerator()
|
Method Summary | |
---|---|
DHParameters |
generateParameters()
which generates the p and g values from the given parameters, returning the DHParameters object. |
void |
init(int size,
int certainty,
java.security.SecureRandom random)
Initialise the parameters generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DHParametersGenerator()
Method Detail |
---|
public void init(int size, int certainty, java.security.SecureRandom random)
size
- bit length for the prime pcertainty
- level of certainty for the prime number testsrandom
- a source of randomnesspublic DHParameters generateParameters()
Note: can take a while...
|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |