Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryption ¶
type Encryption interface { // Encrypt encrypts the data Encrypt(header messages.MessageHeader, data []byte) ([]byte, error) // Decrypt decrypts the data Decrypt(header messages.MessageHeader, data []byte) ([]byte, error) }
func NewEncryption ¶
func NewEncryption(localPublicKey string, localPrivateKey string, peerPublicKey string, cipher Cipher, curve Curve) Encryption
NewEncryption creates a new encryption.
Click to show internal directories.
Click to hide internal directories.