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) ClearBlacklist()
- func (me *Me) DestroyUser(name string)
- func (me *Me) Fingerprint(username string) string
- func (me *Me) FingerprintUser(username string) (string, error)
- func (me *Me) GenerateKeys()
- func (me *Me) IsSessionInitialized(nickname string) bool
- func (me *Me) NamesByFingerprint(fp string) []string
- func (me *Me) Out(f func([]byte))
- func (me *Me) ReceiveMessage(sender, message string) (string, []byte, error)
- func (me *Me) RequestPublicKey(s string)
- func (me *Me) SaveProfile() string
- func (me *Me) SendMessage(message []byte)
- func (me *Me) SendPublicKey(nick string)
- func (me *Me) Shutdown()
- func (me *Me) SortedNames() []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 { MaximumMessageSize int 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) ClearBlacklist ¶
func (me *Me) ClearBlacklist()
func (*Me) DestroyUser ¶
func (*Me) Fingerprint ¶
func (*Me) GenerateKeys ¶
func (me *Me) GenerateKeys()
func (*Me) IsSessionInitialized ¶
func (*Me) NamesByFingerprint ¶
func (*Me) ReceiveMessage ¶
func (*Me) RequestPublicKey ¶
func (*Me) SaveProfile ¶
func (*Me) SendMessage ¶
func (*Me) SendPublicKey ¶
func (*Me) SortedNames ¶
func (*Me) UnblacklistUser ¶
Click to show internal directories.
Click to hide internal directories.