Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHGroup ¶
type DHGroup struct {
// contains filtered or unexported fields
}
func CreateGroup ¶
This function enables users to create their own custom DHGroup. Most users will not however want to use this function, and should prefer the use of GetGroup which supplies DHGroups defined in RFCs 2409 and 3526
WARNING! You should only use this if you know what you are doing. The behavior of the group returned by this function is not defined if prime is not in fact prime.
func GetGroup ¶
This function fetches a DHGroup by its ID as defined in either RFC 2409 or RFC 3526.
If you are unsure what to use use group ID 0 for a sensible default value
func (*DHGroup) ComputeKey ¶
func (*DHGroup) GeneratePrivateKey ¶
type DHKey ¶
type DHKey struct {
// contains filtered or unexported fields
}
func NewPublicKey ¶
func (*DHKey) IsPrivateKey ¶
Click to show internal directories.
Click to hide internal directories.