|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.generators.CramerShoupParametersGenerator
| Constructor Summary | |
CramerShoupParametersGenerator()
|
|
| Method Summary | |
CramerShoupParameters |
generateParameters()
which generates the p and g values from the given parameters, returning the CramerShoupParameters object. |
CramerShoupParameters |
generateParameters(DHParameters dhParams)
|
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 CramerShoupParametersGenerator()
| Method Detail |
public void init(int size,
int certainty,
java.security.SecureRandom random)
size - bit length for the prime pcertainty - a measure of the uncertainty that the caller is willing to tolerate:
the probability that the generated modulus is prime exceeds (1 - 1/2^certainty).
The execution time of this method is proportional to the value of this parameter.random - a source of randomnesspublic CramerShoupParameters generateParameters()
Note: can take a while[]
public CramerShoupParameters generateParameters(DHParameters dhParams)
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||