Documentation ¶
Index ¶
- Variables
- func ContactIdentityKey(id string) ([]byte, error)
- func MakePreKeyBundle(preKey ratchet.PreKeyRecord, signedPreKey ratchet.SignedPreKeyRecord, ...) (*ratchet.PreKeyBundle, error)
- func MyIdentityKey() []byte
- func NewStore(password, path string) (*store, error)
- type Client
- type OutgoingMessage
- type UnknownContactError
Constants ¶
This section is empty.
Variables ¶
View Source
var EndSessionFlag uint32 = 1
View Source
var ErrBadPublicKey = errors.New("public key not formatted correctly")
View Source
var ErrCouldNotDecrypt = errors.New("could not decrypt message using any open sessions")
ErrInvalidMACForMessage signals an incoming message with invalid MAC.
View Source
var ErrInvalidMACForMessage = errors.New("invalid MAC for incoming message")
ErrInvalidMACForMessage signals an incoming message with invalid MAC.
View Source
var ErrStoreBadMAC = errors.New("wrong MAC calculated, possibly due to wrong passphrase")
ErrStoreBadMAC occurs when MAC verification fails on the records stored using password based encryption. The probable cause is using a wrong password.
View Source
var MessageTypeNotImplementedError = errors.New("envelope type not implemented")
MessageTypeNotImplementedError is raised in the unlikely event that an unhandled protocol message type is received.
Functions ¶
func ContactIdentityKey ¶
ContactIdentityKey returns the serialized public key of the given contact
func MakePreKeyBundle ¶
func MakePreKeyBundle(preKey ratchet.PreKeyRecord, signedPreKey ratchet.SignedPreKeyRecord, identityKey ratchet.IdentityKeyPair) (*ratchet.PreKeyBundle, error)
func MyIdentityKey ¶
func MyIdentityKey() []byte
MyIdentityKey returns our serialized public identity key
Types ¶
type Client ¶
type Client struct { Store *store IdentityKey *ratchet.IdentityKeyPair PreKeys *preKeyState DeviceID uint32 PeerID string }
func (*Client) BuildMessage ¶
type OutgoingMessage ¶
type UnknownContactError ¶
type UnknownContactError struct {
// contains filtered or unexported fields
}
UnknownContactError is returned when an unknown group id is encountered
func (UnknownContactError) Error ¶
func (err UnknownContactError) Error() string
Directories ¶
Path | Synopsis |
---|---|
Package libsignal is a generated protocol buffer package.
|
Package libsignal is a generated protocol buffer package. |
Package axolotl implements the Axolotl ratchet as used by TextSecure protocol version 3.
|
Package axolotl implements the Axolotl ratchet as used by TextSecure protocol version 3. |
Click to show internal directories.
Click to hide internal directories.