Versions in this module Expand all Collapse all v0 v0.3.4 Feb 28, 2023 Changes in this version + type DHGroup struct + func CreateGroup(prime, generator *big.Int) (group *DHGroup) + func GetGroup(groupID GroupID) (group *DHGroup, err error) + func (h *DHGroup) ComputeKey(pubkey *DHKey, privkey *DHKey) (key *DHKey, err error) + func (h *DHGroup) G() *big.Int + func (h *DHGroup) GeneratePrivateKey(randReader io.Reader) (key *DHKey, err error) + func (h *DHGroup) P() *big.Int + type DHKey struct + Group *DHGroup + X *big.Int + Y *big.Int + func NewPublicKey(s []byte) *DHKey + func (h *DHKey) IsPrivateKey() bool + func (h *DHKey) MarshalPublicKey() []byte + func (h *DHKey) MarshalPublicKeyString() string + type GroupID int + const DHKX_ID1 + const DHKX_ID14 + const DHKX_ID15 + const DHKX_ID2 + const DHKX_IDZERO + const DHKX_ID_DEFAULT