Versions in this module Expand all Collapse all v0 v0.1.1 Jul 16, 2024 v0.1.0 Jan 1, 2023 Changes in this version + const ADDRESS_SEPARATOR + const CurrentVersion + const MacLength + const PREKEY_TYPE + const SENDERKEY_DISTRIBUTION_TYPE + const SENDERKEY_TYPE + const UnsupportedVersion + const WHISPER_TYPE + type CiphertextMessage interface + Serialize func() []byte + Type func() uint32 + type GroupCiphertextMessage interface + SignedSerialize func() []byte + type PreKeySignalMessage struct + func NewPreKeySignalMessage(version int, registrationID uint32, preKeyID *optional.Uint32, ...) (*PreKeySignalMessage, error) + func NewPreKeySignalMessageFromBytes(serialized []byte, serializer PreKeySignalMessageSerializer, ...) (*PreKeySignalMessage, error) + func NewPreKeySignalMessageFromStruct(structure *PreKeySignalMessageStructure, ...) (*PreKeySignalMessage, error) + func (p *PreKeySignalMessage) BaseKey() ecc.ECPublicKeyable + func (p *PreKeySignalMessage) IdentityKey() *identity.Key + func (p *PreKeySignalMessage) MessageVersion() int + func (p *PreKeySignalMessage) PreKeyID() *optional.Uint32 + func (p *PreKeySignalMessage) RegistrationID() uint32 + func (p *PreKeySignalMessage) Serialize() []byte + func (p *PreKeySignalMessage) SignedPreKeyID() uint32 + func (p *PreKeySignalMessage) Type() uint32 + func (p *PreKeySignalMessage) WhisperMessage() *SignalMessage + type PreKeySignalMessageSerializer interface + Deserialize func(serialized []byte) (*PreKeySignalMessageStructure, error) + Serialize func(signalMessage *PreKeySignalMessageStructure) []byte + type PreKeySignalMessageStructure struct + BaseKey []byte + IdentityKey []byte + Message []byte + PreKeyID *optional.Uint32 + RegistrationID uint32 + SignedPreKeyID uint32 + Version int + type SenderKeyDistributionMessage struct + func NewSenderKeyDistributionMessage(id uint32, iteration uint32, chainKey []byte, signatureKey ecc.ECPublicKeyable, ...) *SenderKeyDistributionMessage + func NewSenderKeyDistributionMessageFromBytes(serialized []byte, serializer SenderKeyDistributionMessageSerializer) (*SenderKeyDistributionMessage, error) + func NewSenderKeyDistributionMessageFromStruct(structure *SenderKeyDistributionMessageStructure, ...) (*SenderKeyDistributionMessage, error) + func (p *SenderKeyDistributionMessage) ChainKey() []byte + func (p *SenderKeyDistributionMessage) ID() uint32 + func (p *SenderKeyDistributionMessage) Iteration() uint32 + func (p *SenderKeyDistributionMessage) Serialize() []byte + func (p *SenderKeyDistributionMessage) SignatureKey() ecc.ECPublicKeyable + func (p *SenderKeyDistributionMessage) Type() uint32 + type SenderKeyDistributionMessageSerializer interface + Deserialize func(serialized []byte) (*SenderKeyDistributionMessageStructure, error) + Serialize func(signalMessage *SenderKeyDistributionMessageStructure) []byte + type SenderKeyDistributionMessageStructure struct + ChainKey []byte + ID uint32 + Iteration uint32 + SigningKey []byte + Version uint32 + type SenderKeyMessage struct + func NewSenderKeyMessage(keyID uint32, iteration uint32, ciphertext []byte, ...) *SenderKeyMessage + func NewSenderKeyMessageFromBytes(serialized []byte, serializer SenderKeyMessageSerializer) (*SenderKeyMessage, error) + func NewSenderKeyMessageFromStruct(structure *SenderKeyMessageStructure, serializer SenderKeyMessageSerializer) (*SenderKeyMessage, error) + func (p *SenderKeyMessage) Ciphertext() []byte + func (p *SenderKeyMessage) Iteration() uint32 + func (p *SenderKeyMessage) KeyID() uint32 + func (p *SenderKeyMessage) Serialize() []byte + func (p *SenderKeyMessage) Signature() [64]byte + func (p *SenderKeyMessage) SignedSerialize() []byte + func (p *SenderKeyMessage) Type() uint32 + func (p *SenderKeyMessage) Version() uint32 + type SenderKeyMessageSerializer interface + Deserialize func(serialized []byte) (*SenderKeyMessageStructure, error) + Serialize func(signalMessage *SenderKeyMessageStructure) []byte + type SenderKeyMessageStructure struct + CipherText []byte + ID uint32 + Iteration uint32 + Signature []byte + Version uint32 + type SenderKeyName struct + func NewSenderKeyName(groupID string, sender *SignalAddress) *SenderKeyName + func (n *SenderKeyName) GroupID() string + func (n *SenderKeyName) Sender() *SignalAddress + type SignalAddress struct + func NewSignalAddress(name string, deviceID uint32) *SignalAddress + func (s *SignalAddress) DeviceID() uint32 + func (s *SignalAddress) Name() string + func (s *SignalAddress) String() string + type SignalMessage struct + func NewSignalMessage(messageVersion int, counter, previousCounter uint32, macKey []byte, ...) (*SignalMessage, error) + func NewSignalMessageFromBytes(serialized []byte, serializer SignalMessageSerializer) (*SignalMessage, error) + func NewSignalMessageFromStruct(structure *SignalMessageStructure, serializer SignalMessageSerializer) (*SignalMessage, error) + func (s *SignalMessage) Body() []byte + func (s *SignalMessage) Counter() uint32 + func (s *SignalMessage) MessageVersion() int + func (s *SignalMessage) SenderRatchetKey() ecc.ECPublicKeyable + func (s *SignalMessage) Serialize() []byte + func (s *SignalMessage) Structure() *SignalMessageStructure + func (s *SignalMessage) Type() uint32 + func (s *SignalMessage) VerifyMac(messageVersion int, senderIdentityKey, receiverIdentityKey *identity.Key, ...) error + type SignalMessageSerializer interface + Deserialize func(serialized []byte) (*SignalMessageStructure, error) + Serialize func(signalMessage *SignalMessageStructure) []byte + type SignalMessageStructure struct + CipherText []byte + Counter uint32 + Mac []byte + PreviousCounter uint32 + RatchetKey []byte + Version int