Documentation ¶
Index ¶
- type Ecdh25519
- func (this Ecdh25519) Check(peersPublic PublicKey) (err error)
- func (this Ecdh25519) ComputeSecret(private PrivateKey, peersPublic PublicKey) (secret []byte)
- func (this Ecdh25519) GenerateKey(rand io.Reader) (private PrivateKey, public PublicKey, err error)
- func (this Ecdh25519) 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 Ecdh25519 ¶
type Ecdh25519 struct{}
Ecdh25519
func (Ecdh25519) ComputeSecret ¶
func (this Ecdh25519) ComputeSecret(private PrivateKey, peersPublic PublicKey) (secret []byte)
生成密码
func (Ecdh25519) GenerateKey ¶
生成密钥对
func (Ecdh25519) PublicKey ¶
func (this Ecdh25519) PublicKey(private PrivateKey) (public PublicKey)
生成公钥
Click to show internal directories.
Click to hide internal directories.