Versions in this module Expand all Collapse all v1 v1.0.0 Oct 8, 2018 Changes in this version + var ErrAllParametersOK = errors.New("DH parameters appear to be ok") + type DH struct + G int + P *big.Int + func Decode(pemData []byte) (*DH, error) + func Generate(bits int, generator Generator, cb GeneratorCallback) (*DH, error) + func (d DH) Check() ([]error, bool) + func (d DH) ToPEM() ([]byte, error) + type Generator int + const GeneratorFive + const GeneratorTwo + type GeneratorCallback func(r GeneratorResult) + type GeneratorResult uint + const GeneratorFirstConfirmation + const GeneratorFoundPossiblePrime + const GeneratorSafePrimeFound