Documentation ¶
Index ¶
- Variables
- func Decrypt(conversationKey []byte, ciphertext string) (string, error)
- func Encrypt(conversationKey []byte, plaintext string, options *EncryptOptions) (string, error)
- func GenerateConversationKey(sendPrivkey *secp256k1.PrivateKey, recvPubkey *secp256k1.PublicKey) []byte
- type EncryptOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MinPlaintextSize = 0x0001 // 1b msg => padded to 32b MaxPlaintextSize = 0xffff // 65535 (64kb-1) => padded to 64kb )
Functions ¶
func Encrypt ¶
func Encrypt(conversationKey []byte, plaintext string, options *EncryptOptions) (string, error)
func GenerateConversationKey ¶
func GenerateConversationKey(sendPrivkey *secp256k1.PrivateKey, recvPubkey *secp256k1.PublicKey) []byte
Types ¶
type EncryptOptions ¶
Click to show internal directories.
Click to hide internal directories.