Documentation ¶
Index ¶
- func DecodePublicKey(raw string) (encryption_protocol string, pubkey []byte, err error)
- func EncodePublicKey(pubkey []byte, encryption_protocol string) (ans string, err error)
- func Encrypt_cmd(cmd *utils.RemoteControlCmd, password string, other_pubkey []byte, ...) (encrypted_cmd utils.EncryptedRemoteControlCmd, err error)
- func Encrypt_data(data []byte, other_pubkey []byte, encryption_protocol string) (ans []byte, err error)
- func KeyPair(encryption_protocol string) (private_key []byte, public_key []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePublicKey ¶
func EncodePublicKey ¶
func Encrypt_cmd ¶
func Encrypt_cmd(cmd *utils.RemoteControlCmd, password string, other_pubkey []byte, encryption_protocol string) (encrypted_cmd utils.EncryptedRemoteControlCmd, err error)
func Encrypt_data ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.