Versions in this module Expand all Collapse all v1 v1.6.7 Feb 27, 2018 Changes in this version + var ErrorPrefix = "?OTR Error:" + var QueryMessage = "?OTRv2?" + type Conversation struct + FragmentSize int + PrivateKey *PrivateKey + Rand io.Reader + SSID [8]byte + TheirPublicKey PublicKey + func (c *Conversation) Authenticate(question string, mutualSecret []byte) (toSend [][]byte, err error) + func (c *Conversation) End() (toSend [][]byte) + func (c *Conversation) IsEncrypted() bool + func (c *Conversation) Receive(in []byte) (out []byte, encrypted bool, change SecurityChange, toSend [][]byte, err error) + func (c *Conversation) SMPQuestion() string + func (c *Conversation) Send(msg []byte) ([][]byte, error) + type PrivateKey struct + func (priv *PrivateKey) Generate(rand io.Reader) + func (priv *PrivateKey) Import(in []byte) bool + func (priv *PrivateKey) Parse(in []byte) ([]byte, bool) + func (priv *PrivateKey) Serialize(in []byte) []byte + func (priv *PrivateKey) Sign(rand io.Reader, hashed []byte) []byte + type PublicKey struct + func (pk *PublicKey) Fingerprint() []byte + func (pk *PublicKey) Parse(in []byte) ([]byte, bool) + func (pk *PublicKey) Serialize(in []byte) []byte + func (pk *PublicKey) Verify(hashed, sig []byte) ([]byte, bool) + type SecurityChange int + const ConversationEnded + const NewKeys + const NoChange + const SMPComplete + const SMPFailed + const SMPSecretNeeded