mirror of
https://github.com/Luzifer/go-dhparam.git
synced 2024-09-19 00:22:58 +00:00
Add more explanation to the generator
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a43d8ee70f
commit
f0b7e0bc19
@ -27,6 +27,10 @@ type GeneratorCallback func(r GeneratorResult)
|
||||
func nullCallback(r GeneratorResult) {}
|
||||
|
||||
// Generate determines a prime number according to the generator having the specified number of bits
|
||||
//
|
||||
// In OpenSSL defined generators are 2 and 5. Others are supported but the verification is not possible.
|
||||
// The bit size should be adjusted to be high enough for the current requirements. Also you should keep
|
||||
// in mind the higher the bitsize, the longer the generation might take.
|
||||
func Generate(bits, generator int, cb GeneratorCallback) (*DH, error) {
|
||||
var (
|
||||
err error
|
||||
|
Loading…
Reference in New Issue
Block a user