Method Crypto.DH.Parameters()->validate()
- Method validate
validate(boolint(0..)effort)- Description
Validate that the DH Parameters doesn't have obvious security weaknesses. It will first attempt to verify the prime p using Donald Knuth's probabilistic primality test with provided
effort. This has a chance of pow(0.25,effort) to produce a false positive. Aneffortof 0 skipps this step. The second test verifies that g is of high order.