Documentation ¶
Index ¶
- type Ecdh
- func (this Ecdh) Check(peersPublic PublicKey) (err error)
- func (this Ecdh) ComputeSecret(private PrivateKey, peersPublic PublicKey) (secret []byte)
- func (this Ecdh) GenerateKey(rand io.Reader) (private PrivateKey, public PublicKey, err error)
- func (this Ecdh) PublicKey(private PrivateKey) (public PublicKey)
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ecdh ¶
type Ecdh struct {
// contains filtered or unexported fields
}
ecdh
func (Ecdh) ComputeSecret ¶
func (this Ecdh) ComputeSecret(private PrivateKey, peersPublic PublicKey) (secret []byte)
生成密码
func (Ecdh) GenerateKey ¶
生成密钥对
Click to show internal directories.
Click to hide internal directories.