Versions in this module Expand all Collapse all v0 v0.0.1 May 22, 2018 Changes in this version + type DHGroup struct + func CreateGroup(prime, generator *big.Int) (group *DHGroup) + func GetGroup(groupID int) (group *DHGroup, err error) + func (self *DHGroup) ComputeKey(pubkey *DHKey, privkey *DHKey) (key *DHKey, err error) + func (self *DHGroup) G() *big.Int + func (self *DHGroup) GeneratePrivateKey(randReader io.Reader) (key *DHKey, err error) + func (self *DHGroup) P() *big.Int + type DHKey struct + func NewPublicKey(s []byte) *DHKey + func (self *DHKey) Bytes() []byte + func (self *DHKey) IsPrivateKey() bool + func (self *DHKey) String() string