Documentation
¶
Index ¶
- func DecryptSymmetric(key string, cyphertext []byte) ([]byte, error)
- func DecryptWithDHKeyPair(privateKey, publicKey string, cyphertext []byte) ([]byte, error)
- func EncryptSymmetric(key string, plaintext []byte) ([]byte, error)
- func EncryptWithDHKeyPair(privateKey, publicKey string, plaintext []byte) ([]byte, error)
- func GenerateDHSessionKey(privateKey, publicKey string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithDHKeyPair ¶
DecryptWithDHKeyPair : 根据用户的私钥和对端的公钥生成ecdh密钥并进行对称解密
func EncryptWithDHKeyPair ¶
EncryptWithDHKeyPair : 根据用户的私钥和对端的公钥生成ecdh密钥并进行对称加密
func GenerateDHSessionKey ¶
GenerateDHSessionKey : 根据本端私钥和对端公钥生成ECDH会话密钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.