Documentation ¶
Index ¶
- func ComputeSecret(private *PrivateKey, peersPublic *PublicKey) *big.Int
- func GenerateKey(groupID GroupID, rand io.Reader) (*PrivateKey, *PublicKey, error)
- func IsSafePrimeGroup(param Group, n int) bool
- func MarshalPrivateKey(key *PrivateKey) ([]byte, error)
- func MarshalPublicKey(key *PublicKey) ([]byte, error)
- type Group
- type GroupID
- type Parameters
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
生成证书
func IsSafePrimeGroup ¶
Types ¶
type Parameters ¶
公用参数
Click to show internal directories.
Click to hide internal directories.