Documentation
¶
Index ¶
- Constants
- func Decrypt(b64ciphertextWrapped string, conversationKey [32]byte) (string, error)
- func Encrypt(plaintext string, conversationKey [32]byte, ...) (string, error)
- func GenerateConversationKey(pub string, sk string) ([32]byte, error)
- func WithCustomNonce(nonce []byte) func(opts *encryptOptions)
Constants ¶
View Source
const ( MinPlaintextSize = 0x0001 // 1b msg => padded to 32b MaxPlaintextSize = 0xffff // 65535 (64kb-1) => padded to 64kb )
Variables ¶
This section is empty.
Functions ¶
func GenerateConversationKey ¶ added in v0.31.0
func WithCustomNonce ¶ added in v0.34.5
func WithCustomNonce(nonce []byte) func(opts *encryptOptions)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.