Documentation ¶
Index ¶
- func Decrypt(sharedSecretKey string, encryptedBytes []byte) []byte
- func Encrypt(sharedSecretKey string, messageBytes []byte) []byte
- func GenerateKeys() (string, string)
- func LoadPrivateKey(name string) ed25519.PrivateKey
- func LoadPublicKey(name string) ed25519.PublicKey
- func ParsePrivateKey(privKey string) ed25519.PrivateKey
- func ParsePublicKey(pubKey string) ed25519.PublicKey
- func SignSignature(privKey ed25519.PrivateKey, message string) string
- func VerifySignature(pubKey ed25519.PublicKey, message, signature string) bool
- type Gorram
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt with AES using shared secret
func Encrypt ¶
Encrypt with AES using shared secret
func LoadPrivateKey ¶
func LoadPrivateKey(name string) ed25519.PrivateKey
func ParsePrivateKey ¶
func ParsePrivateKey(privKey string) ed25519.PrivateKey
func SignSignature ¶
func SignSignature(privKey ed25519.PrivateKey, message string) string
Types ¶
Click to show internal directories.
Click to hide internal directories.