Documentation
¶
Index ¶
- func NewCryptoClient(device *gorpc.Device, dhKey *DHKey) gorpc.Handler
- func NewCryptoServer(resovler DHKeyResolver) gorpc.Handler
- func NewHeartbeatHandler(timeout time.Duration) gorpc.Handler
- func NewStateHandler(f StateF) gorpc.Handler
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- type CryptoServer
- type DHKey
- type DHKeyResolve
- type DHKeyResolver
- type StateF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCryptoClient ¶
NewCryptoClient .
func NewHeartbeatHandler ¶
NewHeartbeatHandler create new heartbeat handler
Types ¶
type DHKey ¶
type DHKey struct {
// contains filtered or unexported fields
}
DHKey 通过Diffie-Hellman算法生成共享密钥
type DHKeyResolve ¶
DHKeyResolve .
type DHKeyResolver ¶
DHKeyResolver .
Click to show internal directories.
Click to hide internal directories.