Documentation ¶ Overview ¶ Package decryptor provides functions to load keys, generate key pairs, derive shared secrets, and decrypt messages Index ¶ func Decrypt(sharedSecret [32]byte, ciphertext []byte) (plaintext []byte, err error) func GenerateKeyPair() ([32]byte, [32]byte) func GetSharedSecret(privKey [32]byte, pubKey [32]byte) ([32]byte, error) func LoadKey(keyFiles embed.FS, filename string) ([32]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decrypt ¶ func Decrypt(sharedSecret [32]byte, ciphertext []byte) (plaintext []byte, err error) func GenerateKeyPair ¶ func GenerateKeyPair() ([32]byte, [32]byte) func GetSharedSecret ¶ func GetSharedSecret(privKey [32]byte, pubKey [32]byte) ([32]byte, error) func LoadKey ¶ func LoadKey(keyFiles embed.FS, filename string) ([32]byte, error) Types ¶ This section is empty. Source Files ¶ View all Source files decryptor.go Click to show internal directories. Click to hide internal directories.