Documentation ¶
Overview ¶
Package multiparty implements the Cryptodog Multiparty Protocol as used in Cryptodog version 2.5.0, and previously, Cryptocat 2.
Index ¶
- func DeriveKey(password string) []byte
- func HMAC(msg, key []byte) string
- func IsElem(element string, array []string) bool
- func MessageTag(message []byte) string
- func Sha512(input []byte) []byte
- type Answer
- type Buddy
- type KeyExMessage
- type MPStorage
- type Me
- func (me *Me) BlacklistUser(nick string)
- func (me *Me) DestroyUser(name string)
- func (me *Me) FP(nick string) string
- func (me *Me) FingerprintUser(username string) (string, error)
- func (me *Me) GenerateKeys()
- func (m *Me) KeyWasSent(u string) bool
- func (me *Me) MessageSender(f func([]byte))
- func (me *Me) ReceiveMessage(sender, message string) ([]byte, error)
- func (me *Me) RequestPublicKey(s string)
- func (me *Me) SaveProfile() string
- func (me *Me) SendMessage(message []byte) []byte
- func (me *Me) SendPublicKey(nick string) string
- func (me *Me) Shutdown()
- func (me *Me) TransmitPublicKey(who string)
- func (me *Me) UnblacklistUser(nick string)
- type TextAnswer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MessageTag ¶
Types ¶
type Answer ¶
type Answer struct { Type string `json:"type"` Text map[string]*TextAnswer `json:"text"` Tag string `json:"tag,omitempty"` }
type KeyExMessage ¶
type Me ¶
type Me struct { Name string UsedIVs []string SecretKey [32]byte PublicKey [32]byte SentKey bool Buddies map[string]*Buddy // contains filtered or unexported fields }
func (*Me) BlacklistUser ¶
func (*Me) DestroyUser ¶
func (*Me) GenerateKeys ¶
func (me *Me) GenerateKeys()
func (*Me) KeyWasSent ¶
func (*Me) MessageSender ¶
func (*Me) RequestPublicKey ¶
func (*Me) SaveProfile ¶
func (*Me) SendMessage ¶
func (*Me) SendPublicKey ¶
func (*Me) TransmitPublicKey ¶
func (*Me) UnblacklistUser ¶
Click to show internal directories.
Click to hide internal directories.