Documentation
¶
Overview ¶
Package auth 提供客户端认证相关功能
Index ¶
Constants ¶
View Source
const ( // PrivateKeyPEMType PEM 类型标识 PrivateKeyPEMType = "PRIVATE KEY" // PublicKeyPEMType PEM 类型标识 PublicKeyPEMType = "PUBLIC KEY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPair ¶
type KeyPair struct {
PublicKey ed25519.PublicKey
PrivateKey ed25519.PrivateKey
}
KeyPair Ed25519 密钥对
func (*KeyPair) PubKeyBase64 ¶
PubKeyBase64 返回 Base64 编码的公钥(用于发送给 server)
Click to show internal directories.
Click to hide internal directories.