Documentation ¶
Index ¶
- func AESDecript(key, data []byte) ([]byte, error)
- func AESEncript(key, data []byte) ([]byte, error)
- func GeneratePrivEd25519() (ed25519.PrivateKey, error)
- func GenerateSesKey() []byte
- func GetSHA256(src []byte) []byte
- func RSADecrypt(data []byte, privKey *rsa.PrivateKey) ([]byte, error)
- func RSAEncrypt(data []byte, key *rsa.PublicKey) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecript ¶
func AESEncript ¶
func GeneratePrivEd25519 ¶
func GeneratePrivEd25519() (ed25519.PrivateKey, error)
func GenerateSesKey ¶
func GenerateSesKey() []byte
func RSADecrypt ¶
func RSADecrypt(data []byte, privKey *rsa.PrivateKey) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.