Documentation ¶
Overview ¶
Package serialize provides a serialization structure to serialize and deserialize Signal objects into storeable and transportable bytes.
Index ¶
- type CombinedFingerprints
- func (*CombinedFingerprints) Descriptor() ([]byte, []int)
- func (m *CombinedFingerprints) GetLocalFingerprint() *LogicalFingerprint
- func (m *CombinedFingerprints) GetRemoteFingerprint() *LogicalFingerprint
- func (m *CombinedFingerprints) GetVersion() uint32
- func (*CombinedFingerprints) ProtoMessage()
- func (m *CombinedFingerprints) Reset()
- func (m *CombinedFingerprints) String() string
- func (m *CombinedFingerprints) XXX_DiscardUnknown()
- func (m *CombinedFingerprints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CombinedFingerprints) XXX_Merge(src proto.Message)
- func (m *CombinedFingerprints) XXX_Size() int
- func (m *CombinedFingerprints) XXX_Unmarshal(b []byte) error
- type DeviceConsistencyCodeMessage
- func (*DeviceConsistencyCodeMessage) Descriptor() ([]byte, []int)
- func (m *DeviceConsistencyCodeMessage) GetGeneration() uint32
- func (m *DeviceConsistencyCodeMessage) GetSignature() []byte
- func (*DeviceConsistencyCodeMessage) ProtoMessage()
- func (m *DeviceConsistencyCodeMessage) Reset()
- func (m *DeviceConsistencyCodeMessage) String() string
- func (m *DeviceConsistencyCodeMessage) XXX_DiscardUnknown()
- func (m *DeviceConsistencyCodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceConsistencyCodeMessage) XXX_Merge(src proto.Message)
- func (m *DeviceConsistencyCodeMessage) XXX_Size() int
- func (m *DeviceConsistencyCodeMessage) XXX_Unmarshal(b []byte) error
- type IdentityKeyPairStructure
- func (*IdentityKeyPairStructure) Descriptor() ([]byte, []int)
- func (m *IdentityKeyPairStructure) GetPrivateKey() []byte
- func (m *IdentityKeyPairStructure) GetPublicKey() []byte
- func (*IdentityKeyPairStructure) ProtoMessage()
- func (m *IdentityKeyPairStructure) Reset()
- func (m *IdentityKeyPairStructure) String() string
- func (m *IdentityKeyPairStructure) XXX_DiscardUnknown()
- func (m *IdentityKeyPairStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IdentityKeyPairStructure) XXX_Merge(src proto.Message)
- func (m *IdentityKeyPairStructure) XXX_Size() int
- func (m *IdentityKeyPairStructure) XXX_Unmarshal(b []byte) error
- type JSONPreKeyRecordSerializer
- type JSONPreKeySignalMessageSerializer
- type JSONSenderKeyDistributionMessageSerializer
- type JSONSenderKeyMessageSerializer
- type JSONSenderKeySessionSerializer
- type JSONSenderKeyStateSerializer
- type JSONSessionSerializer
- type JSONSignalMessageSerializer
- type JSONSignedPreKeyRecordSerializer
- type JSONStateSerializer
- type KeyExchangeMessage
- func (*KeyExchangeMessage) Descriptor() ([]byte, []int)
- func (m *KeyExchangeMessage) GetBaseKey() []byte
- func (m *KeyExchangeMessage) GetBaseKeySignature() []byte
- func (m *KeyExchangeMessage) GetId() uint32
- func (m *KeyExchangeMessage) GetIdentityKey() []byte
- func (m *KeyExchangeMessage) GetRatchetKey() []byte
- func (*KeyExchangeMessage) ProtoMessage()
- func (m *KeyExchangeMessage) Reset()
- func (m *KeyExchangeMessage) String() string
- func (m *KeyExchangeMessage) XXX_DiscardUnknown()
- func (m *KeyExchangeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyExchangeMessage) XXX_Merge(src proto.Message)
- func (m *KeyExchangeMessage) XXX_Size() int
- func (m *KeyExchangeMessage) XXX_Unmarshal(b []byte) error
- type LogicalFingerprint
- func (*LogicalFingerprint) Descriptor() ([]byte, []int)
- func (m *LogicalFingerprint) GetContent() []byte
- func (*LogicalFingerprint) ProtoMessage()
- func (m *LogicalFingerprint) Reset()
- func (m *LogicalFingerprint) String() string
- func (m *LogicalFingerprint) XXX_DiscardUnknown()
- func (m *LogicalFingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogicalFingerprint) XXX_Merge(src proto.Message)
- func (m *LogicalFingerprint) XXX_Size() int
- func (m *LogicalFingerprint) XXX_Unmarshal(b []byte) error
- type PreKeyRecordStructure
- func (*PreKeyRecordStructure) Descriptor() ([]byte, []int)
- func (m *PreKeyRecordStructure) GetId() uint32
- func (m *PreKeyRecordStructure) GetPrivateKey() []byte
- func (m *PreKeyRecordStructure) GetPublicKey() []byte
- func (*PreKeyRecordStructure) ProtoMessage()
- func (m *PreKeyRecordStructure) Reset()
- func (m *PreKeyRecordStructure) String() string
- func (m *PreKeyRecordStructure) XXX_DiscardUnknown()
- func (m *PreKeyRecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PreKeyRecordStructure) XXX_Merge(src proto.Message)
- func (m *PreKeyRecordStructure) XXX_Size() int
- func (m *PreKeyRecordStructure) XXX_Unmarshal(b []byte) error
- type PreKeySignalMessage
- func (*PreKeySignalMessage) Descriptor() ([]byte, []int)
- func (m *PreKeySignalMessage) GetBaseKey() []byte
- func (m *PreKeySignalMessage) GetIdentityKey() []byte
- func (m *PreKeySignalMessage) GetMessage() []byte
- func (m *PreKeySignalMessage) GetPreKeyId() uint32
- func (m *PreKeySignalMessage) GetRegistrationId() uint32
- func (m *PreKeySignalMessage) GetSignedPreKeyId() uint32
- func (*PreKeySignalMessage) ProtoMessage()
- func (m *PreKeySignalMessage) Reset()
- func (m *PreKeySignalMessage) String() string
- func (m *PreKeySignalMessage) XXX_DiscardUnknown()
- func (m *PreKeySignalMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PreKeySignalMessage) XXX_Merge(src proto.Message)
- func (m *PreKeySignalMessage) XXX_Size() int
- func (m *PreKeySignalMessage) XXX_Unmarshal(b []byte) error
- type ProtoBufPreKeySignalMessageSerializer
- type ProtoBufSenderKeyDistributionMessageSerializer
- type ProtoBufSenderKeyMessageSerializer
- type ProtoBufSignalMessageSerializer
- type RecordStructure
- func (*RecordStructure) Descriptor() ([]byte, []int)
- func (m *RecordStructure) GetCurrentSession() *SessionStructure
- func (m *RecordStructure) GetPreviousSessions() []*SessionStructure
- func (*RecordStructure) ProtoMessage()
- func (m *RecordStructure) Reset()
- func (m *RecordStructure) String() string
- func (m *RecordStructure) XXX_DiscardUnknown()
- func (m *RecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecordStructure) XXX_Merge(src proto.Message)
- func (m *RecordStructure) XXX_Size() int
- func (m *RecordStructure) XXX_Unmarshal(b []byte) error
- type SenderKeyDistributionMessage
- func (*SenderKeyDistributionMessage) Descriptor() ([]byte, []int)
- func (m *SenderKeyDistributionMessage) GetChainKey() []byte
- func (m *SenderKeyDistributionMessage) GetId() uint32
- func (m *SenderKeyDistributionMessage) GetIteration() uint32
- func (m *SenderKeyDistributionMessage) GetSigningKey() []byte
- func (*SenderKeyDistributionMessage) ProtoMessage()
- func (m *SenderKeyDistributionMessage) Reset()
- func (m *SenderKeyDistributionMessage) String() string
- func (m *SenderKeyDistributionMessage) XXX_DiscardUnknown()
- func (m *SenderKeyDistributionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SenderKeyDistributionMessage) XXX_Merge(src proto.Message)
- func (m *SenderKeyDistributionMessage) XXX_Size() int
- func (m *SenderKeyDistributionMessage) XXX_Unmarshal(b []byte) error
- type SenderKeyMessage
- func (*SenderKeyMessage) Descriptor() ([]byte, []int)
- func (m *SenderKeyMessage) GetCiphertext() []byte
- func (m *SenderKeyMessage) GetId() uint32
- func (m *SenderKeyMessage) GetIteration() uint32
- func (*SenderKeyMessage) ProtoMessage()
- func (m *SenderKeyMessage) Reset()
- func (m *SenderKeyMessage) String() string
- func (m *SenderKeyMessage) XXX_DiscardUnknown()
- func (m *SenderKeyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SenderKeyMessage) XXX_Merge(src proto.Message)
- func (m *SenderKeyMessage) XXX_Size() int
- func (m *SenderKeyMessage) XXX_Unmarshal(b []byte) error
- type SenderKeyRecordStructure
- func (*SenderKeyRecordStructure) Descriptor() ([]byte, []int)
- func (m *SenderKeyRecordStructure) GetSenderKeyStates() []*SenderKeyStateStructure
- func (*SenderKeyRecordStructure) ProtoMessage()
- func (m *SenderKeyRecordStructure) Reset()
- func (m *SenderKeyRecordStructure) String() string
- func (m *SenderKeyRecordStructure) XXX_DiscardUnknown()
- func (m *SenderKeyRecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SenderKeyRecordStructure) XXX_Merge(src proto.Message)
- func (m *SenderKeyRecordStructure) XXX_Size() int
- func (m *SenderKeyRecordStructure) XXX_Unmarshal(b []byte) error
- type SenderKeyStateStructure
- func (*SenderKeyStateStructure) Descriptor() ([]byte, []int)
- func (m *SenderKeyStateStructure) GetSenderChainKey() *SenderKeyStateStructure_SenderChainKey
- func (m *SenderKeyStateStructure) GetSenderKeyId() uint32
- func (m *SenderKeyStateStructure) GetSenderMessageKeys() []*SenderKeyStateStructure_SenderMessageKey
- func (m *SenderKeyStateStructure) GetSenderSigningKey() *SenderKeyStateStructure_SenderSigningKey
- func (*SenderKeyStateStructure) ProtoMessage()
- func (m *SenderKeyStateStructure) Reset()
- func (m *SenderKeyStateStructure) String() string
- func (m *SenderKeyStateStructure) XXX_DiscardUnknown()
- func (m *SenderKeyStateStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SenderKeyStateStructure) XXX_Merge(src proto.Message)
- func (m *SenderKeyStateStructure) XXX_Size() int
- func (m *SenderKeyStateStructure) XXX_Unmarshal(b []byte) error
- type SenderKeyStateStructure_SenderChainKey
- func (*SenderKeyStateStructure_SenderChainKey) Descriptor() ([]byte, []int)
- func (m *SenderKeyStateStructure_SenderChainKey) GetIteration() uint32
- func (m *SenderKeyStateStructure_SenderChainKey) GetSeed() []byte
- func (*SenderKeyStateStructure_SenderChainKey) ProtoMessage()
- func (m *SenderKeyStateStructure_SenderChainKey) Reset()
- func (m *SenderKeyStateStructure_SenderChainKey) String() string
- func (m *SenderKeyStateStructure_SenderChainKey) XXX_DiscardUnknown()
- func (m *SenderKeyStateStructure_SenderChainKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SenderKeyStateStructure_SenderChainKey) XXX_Merge(src proto.Message)
- func (m *SenderKeyStateStructure_SenderChainKey) XXX_Size() int
- func (m *SenderKeyStateStructure_SenderChainKey) XXX_Unmarshal(b []byte) error
- type SenderKeyStateStructure_SenderMessageKey
- func (*SenderKeyStateStructure_SenderMessageKey) Descriptor() ([]byte, []int)
- func (m *SenderKeyStateStructure_SenderMessageKey) GetIteration() uint32
- func (m *SenderKeyStateStructure_SenderMessageKey) GetSeed() []byte
- func (*SenderKeyStateStructure_SenderMessageKey) ProtoMessage()
- func (m *SenderKeyStateStructure_SenderMessageKey) Reset()
- func (m *SenderKeyStateStructure_SenderMessageKey) String() string
- func (m *SenderKeyStateStructure_SenderMessageKey) XXX_DiscardUnknown()
- func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Merge(src proto.Message)
- func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Size() int
- func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Unmarshal(b []byte) error
- type SenderKeyStateStructure_SenderSigningKey
- func (*SenderKeyStateStructure_SenderSigningKey) Descriptor() ([]byte, []int)
- func (m *SenderKeyStateStructure_SenderSigningKey) GetPrivate() []byte
- func (m *SenderKeyStateStructure_SenderSigningKey) GetPublic() []byte
- func (*SenderKeyStateStructure_SenderSigningKey) ProtoMessage()
- func (m *SenderKeyStateStructure_SenderSigningKey) Reset()
- func (m *SenderKeyStateStructure_SenderSigningKey) String() string
- func (m *SenderKeyStateStructure_SenderSigningKey) XXX_DiscardUnknown()
- func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Merge(src proto.Message)
- func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Size() int
- func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Unmarshal(b []byte) error
- type Serializer
- type SessionStructure
- func (*SessionStructure) Descriptor() ([]byte, []int)
- func (m *SessionStructure) GetAliceBaseKey() []byte
- func (m *SessionStructure) GetLocalIdentityPublic() []byte
- func (m *SessionStructure) GetLocalRegistrationId() uint32
- func (m *SessionStructure) GetNeedsRefresh() bool
- func (m *SessionStructure) GetPendingKeyExchange() *SessionStructure_PendingKeyExchange
- func (m *SessionStructure) GetPendingPreKey() *SessionStructure_PendingPreKey
- func (m *SessionStructure) GetPreviousCounter() uint32
- func (m *SessionStructure) GetReceiverChains() []*SessionStructure_Chain
- func (m *SessionStructure) GetRemoteIdentityPublic() []byte
- func (m *SessionStructure) GetRemoteRegistrationId() uint32
- func (m *SessionStructure) GetRootKey() []byte
- func (m *SessionStructure) GetSenderChain() *SessionStructure_Chain
- func (m *SessionStructure) GetSessionVersion() uint32
- func (*SessionStructure) ProtoMessage()
- func (m *SessionStructure) Reset()
- func (m *SessionStructure) String() string
- func (m *SessionStructure) XXX_DiscardUnknown()
- func (m *SessionStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionStructure) XXX_Merge(src proto.Message)
- func (m *SessionStructure) XXX_Size() int
- func (m *SessionStructure) XXX_Unmarshal(b []byte) error
- type SessionStructure_Chain
- func (*SessionStructure_Chain) Descriptor() ([]byte, []int)
- func (m *SessionStructure_Chain) GetChainKey() *SessionStructure_Chain_ChainKey
- func (m *SessionStructure_Chain) GetMessageKeys() []*SessionStructure_Chain_MessageKey
- func (m *SessionStructure_Chain) GetSenderRatchetKey() []byte
- func (m *SessionStructure_Chain) GetSenderRatchetKeyPrivate() []byte
- func (*SessionStructure_Chain) ProtoMessage()
- func (m *SessionStructure_Chain) Reset()
- func (m *SessionStructure_Chain) String() string
- func (m *SessionStructure_Chain) XXX_DiscardUnknown()
- func (m *SessionStructure_Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionStructure_Chain) XXX_Merge(src proto.Message)
- func (m *SessionStructure_Chain) XXX_Size() int
- func (m *SessionStructure_Chain) XXX_Unmarshal(b []byte) error
- type SessionStructure_Chain_ChainKey
- func (*SessionStructure_Chain_ChainKey) Descriptor() ([]byte, []int)
- func (m *SessionStructure_Chain_ChainKey) GetIndex() uint32
- func (m *SessionStructure_Chain_ChainKey) GetKey() []byte
- func (*SessionStructure_Chain_ChainKey) ProtoMessage()
- func (m *SessionStructure_Chain_ChainKey) Reset()
- func (m *SessionStructure_Chain_ChainKey) String() string
- func (m *SessionStructure_Chain_ChainKey) XXX_DiscardUnknown()
- func (m *SessionStructure_Chain_ChainKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionStructure_Chain_ChainKey) XXX_Merge(src proto.Message)
- func (m *SessionStructure_Chain_ChainKey) XXX_Size() int
- func (m *SessionStructure_Chain_ChainKey) XXX_Unmarshal(b []byte) error
- type SessionStructure_Chain_MessageKey
- func (*SessionStructure_Chain_MessageKey) Descriptor() ([]byte, []int)
- func (m *SessionStructure_Chain_MessageKey) GetCipherKey() []byte
- func (m *SessionStructure_Chain_MessageKey) GetIndex() uint32
- func (m *SessionStructure_Chain_MessageKey) GetIv() []byte
- func (m *SessionStructure_Chain_MessageKey) GetMacKey() []byte
- func (*SessionStructure_Chain_MessageKey) ProtoMessage()
- func (m *SessionStructure_Chain_MessageKey) Reset()
- func (m *SessionStructure_Chain_MessageKey) String() string
- func (m *SessionStructure_Chain_MessageKey) XXX_DiscardUnknown()
- func (m *SessionStructure_Chain_MessageKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionStructure_Chain_MessageKey) XXX_Merge(src proto.Message)
- func (m *SessionStructure_Chain_MessageKey) XXX_Size() int
- func (m *SessionStructure_Chain_MessageKey) XXX_Unmarshal(b []byte) error
- type SessionStructure_PendingKeyExchange
- func (*SessionStructure_PendingKeyExchange) Descriptor() ([]byte, []int)
- func (m *SessionStructure_PendingKeyExchange) GetLocalBaseKey() []byte
- func (m *SessionStructure_PendingKeyExchange) GetLocalBaseKeyPrivate() []byte
- func (m *SessionStructure_PendingKeyExchange) GetLocalIdentityKey() []byte
- func (m *SessionStructure_PendingKeyExchange) GetLocalIdentityKeyPrivate() []byte
- func (m *SessionStructure_PendingKeyExchange) GetLocalRatchetKey() []byte
- func (m *SessionStructure_PendingKeyExchange) GetLocalRatchetKeyPrivate() []byte
- func (m *SessionStructure_PendingKeyExchange) GetSequence() uint32
- func (*SessionStructure_PendingKeyExchange) ProtoMessage()
- func (m *SessionStructure_PendingKeyExchange) Reset()
- func (m *SessionStructure_PendingKeyExchange) String() string
- func (m *SessionStructure_PendingKeyExchange) XXX_DiscardUnknown()
- func (m *SessionStructure_PendingKeyExchange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionStructure_PendingKeyExchange) XXX_Merge(src proto.Message)
- func (m *SessionStructure_PendingKeyExchange) XXX_Size() int
- func (m *SessionStructure_PendingKeyExchange) XXX_Unmarshal(b []byte) error
- type SessionStructure_PendingPreKey
- func (*SessionStructure_PendingPreKey) Descriptor() ([]byte, []int)
- func (m *SessionStructure_PendingPreKey) GetBaseKey() []byte
- func (m *SessionStructure_PendingPreKey) GetPreKeyId() uint32
- func (m *SessionStructure_PendingPreKey) GetSignedPreKeyId() int32
- func (*SessionStructure_PendingPreKey) ProtoMessage()
- func (m *SessionStructure_PendingPreKey) Reset()
- func (m *SessionStructure_PendingPreKey) String() string
- func (m *SessionStructure_PendingPreKey) XXX_DiscardUnknown()
- func (m *SessionStructure_PendingPreKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionStructure_PendingPreKey) XXX_Merge(src proto.Message)
- func (m *SessionStructure_PendingPreKey) XXX_Size() int
- func (m *SessionStructure_PendingPreKey) XXX_Unmarshal(b []byte) error
- type SignalMessage
- func (*SignalMessage) Descriptor() ([]byte, []int)
- func (m *SignalMessage) GetCiphertext() []byte
- func (m *SignalMessage) GetCounter() uint32
- func (m *SignalMessage) GetPreviousCounter() uint32
- func (m *SignalMessage) GetRatchetKey() []byte
- func (*SignalMessage) ProtoMessage()
- func (m *SignalMessage) Reset()
- func (m *SignalMessage) String() string
- func (m *SignalMessage) XXX_DiscardUnknown()
- func (m *SignalMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignalMessage) XXX_Merge(src proto.Message)
- func (m *SignalMessage) XXX_Size() int
- func (m *SignalMessage) XXX_Unmarshal(b []byte) error
- type SignedPreKeyRecordStructure
- func (*SignedPreKeyRecordStructure) Descriptor() ([]byte, []int)
- func (m *SignedPreKeyRecordStructure) GetId() uint32
- func (m *SignedPreKeyRecordStructure) GetPrivateKey() []byte
- func (m *SignedPreKeyRecordStructure) GetPublicKey() []byte
- func (m *SignedPreKeyRecordStructure) GetSignature() []byte
- func (m *SignedPreKeyRecordStructure) GetTimestamp() uint64
- func (*SignedPreKeyRecordStructure) ProtoMessage()
- func (m *SignedPreKeyRecordStructure) Reset()
- func (m *SignedPreKeyRecordStructure) String() string
- func (m *SignedPreKeyRecordStructure) XXX_DiscardUnknown()
- func (m *SignedPreKeyRecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedPreKeyRecordStructure) XXX_Merge(src proto.Message)
- func (m *SignedPreKeyRecordStructure) XXX_Size() int
- func (m *SignedPreKeyRecordStructure) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CombinedFingerprints ¶
type CombinedFingerprints struct { Version *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` LocalFingerprint *LogicalFingerprint `protobuf:"bytes,2,opt,name=localFingerprint" json:"localFingerprint,omitempty"` RemoteFingerprint *LogicalFingerprint `protobuf:"bytes,3,opt,name=remoteFingerprint" json:"remoteFingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CombinedFingerprints) Descriptor ¶
func (*CombinedFingerprints) Descriptor() ([]byte, []int)
func (*CombinedFingerprints) GetLocalFingerprint ¶
func (m *CombinedFingerprints) GetLocalFingerprint() *LogicalFingerprint
func (*CombinedFingerprints) GetRemoteFingerprint ¶
func (m *CombinedFingerprints) GetRemoteFingerprint() *LogicalFingerprint
func (*CombinedFingerprints) GetVersion ¶
func (m *CombinedFingerprints) GetVersion() uint32
func (*CombinedFingerprints) ProtoMessage ¶
func (*CombinedFingerprints) ProtoMessage()
func (*CombinedFingerprints) Reset ¶
func (m *CombinedFingerprints) Reset()
func (*CombinedFingerprints) String ¶
func (m *CombinedFingerprints) String() string
func (*CombinedFingerprints) XXX_DiscardUnknown ¶
func (m *CombinedFingerprints) XXX_DiscardUnknown()
func (*CombinedFingerprints) XXX_Marshal ¶
func (m *CombinedFingerprints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CombinedFingerprints) XXX_Merge ¶
func (m *CombinedFingerprints) XXX_Merge(src proto.Message)
func (*CombinedFingerprints) XXX_Size ¶
func (m *CombinedFingerprints) XXX_Size() int
func (*CombinedFingerprints) XXX_Unmarshal ¶
func (m *CombinedFingerprints) XXX_Unmarshal(b []byte) error
type DeviceConsistencyCodeMessage ¶
type DeviceConsistencyCodeMessage struct { Generation *uint32 `protobuf:"varint,1,opt,name=generation" json:"generation,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeviceConsistencyCodeMessage) Descriptor ¶
func (*DeviceConsistencyCodeMessage) Descriptor() ([]byte, []int)
func (*DeviceConsistencyCodeMessage) GetGeneration ¶
func (m *DeviceConsistencyCodeMessage) GetGeneration() uint32
func (*DeviceConsistencyCodeMessage) GetSignature ¶
func (m *DeviceConsistencyCodeMessage) GetSignature() []byte
func (*DeviceConsistencyCodeMessage) ProtoMessage ¶
func (*DeviceConsistencyCodeMessage) ProtoMessage()
func (*DeviceConsistencyCodeMessage) Reset ¶
func (m *DeviceConsistencyCodeMessage) Reset()
func (*DeviceConsistencyCodeMessage) String ¶
func (m *DeviceConsistencyCodeMessage) String() string
func (*DeviceConsistencyCodeMessage) XXX_DiscardUnknown ¶
func (m *DeviceConsistencyCodeMessage) XXX_DiscardUnknown()
func (*DeviceConsistencyCodeMessage) XXX_Marshal ¶
func (m *DeviceConsistencyCodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceConsistencyCodeMessage) XXX_Merge ¶
func (m *DeviceConsistencyCodeMessage) XXX_Merge(src proto.Message)
func (*DeviceConsistencyCodeMessage) XXX_Size ¶
func (m *DeviceConsistencyCodeMessage) XXX_Size() int
func (*DeviceConsistencyCodeMessage) XXX_Unmarshal ¶
func (m *DeviceConsistencyCodeMessage) XXX_Unmarshal(b []byte) error
type IdentityKeyPairStructure ¶
type IdentityKeyPairStructure struct { PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"` PrivateKey []byte `protobuf:"bytes,2,opt,name=privateKey" json:"privateKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IdentityKeyPairStructure) Descriptor ¶
func (*IdentityKeyPairStructure) Descriptor() ([]byte, []int)
func (*IdentityKeyPairStructure) GetPrivateKey ¶
func (m *IdentityKeyPairStructure) GetPrivateKey() []byte
func (*IdentityKeyPairStructure) GetPublicKey ¶
func (m *IdentityKeyPairStructure) GetPublicKey() []byte
func (*IdentityKeyPairStructure) ProtoMessage ¶
func (*IdentityKeyPairStructure) ProtoMessage()
func (*IdentityKeyPairStructure) Reset ¶
func (m *IdentityKeyPairStructure) Reset()
func (*IdentityKeyPairStructure) String ¶
func (m *IdentityKeyPairStructure) String() string
func (*IdentityKeyPairStructure) XXX_DiscardUnknown ¶
func (m *IdentityKeyPairStructure) XXX_DiscardUnknown()
func (*IdentityKeyPairStructure) XXX_Marshal ¶
func (m *IdentityKeyPairStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdentityKeyPairStructure) XXX_Merge ¶
func (m *IdentityKeyPairStructure) XXX_Merge(src proto.Message)
func (*IdentityKeyPairStructure) XXX_Size ¶
func (m *IdentityKeyPairStructure) XXX_Size() int
func (*IdentityKeyPairStructure) XXX_Unmarshal ¶
func (m *IdentityKeyPairStructure) XXX_Unmarshal(b []byte) error
type JSONPreKeyRecordSerializer ¶
type JSONPreKeyRecordSerializer struct{}
JSONPreKeyRecordSerializer is a structure for serializing prekey records into and from JSON.
func (*JSONPreKeyRecordSerializer) Deserialize ¶
func (j *JSONPreKeyRecordSerializer) Deserialize(serialized []byte) (*record.PreKeyStructure, error)
Deserialize will take in JSON bytes and return a prekey record structure.
func (*JSONPreKeyRecordSerializer) Serialize ¶
func (j *JSONPreKeyRecordSerializer) Serialize(preKey *record.PreKeyStructure) []byte
Serialize will take a prekey record structure and convert it to JSON bytes.
type JSONPreKeySignalMessageSerializer ¶
type JSONPreKeySignalMessageSerializer struct{}
JSONPreKeySignalMessageSerializer is a structure for serializing prekey signal messages into and from JSON.
func (*JSONPreKeySignalMessageSerializer) Deserialize ¶
func (j *JSONPreKeySignalMessageSerializer) Deserialize(serialized []byte) (*protocol.PreKeySignalMessageStructure, error)
Deserialize will take in JSON bytes and return a prekey signal message structure.
func (*JSONPreKeySignalMessageSerializer) Serialize ¶
func (j *JSONPreKeySignalMessageSerializer) Serialize(signalMessage *protocol.PreKeySignalMessageStructure) []byte
Serialize will take a prekey signal message structure and convert it to JSON bytes.
type JSONSenderKeyDistributionMessageSerializer ¶
type JSONSenderKeyDistributionMessageSerializer struct{}
JSONSenderKeyDistributionMessageSerializer is a structure for serializing senderkey distribution records to and from JSON.
func (*JSONSenderKeyDistributionMessageSerializer) Deserialize ¶
func (j *JSONSenderKeyDistributionMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyDistributionMessageStructure, error)
Deserialize will take in JSON bytes and return a message structure, which can be used to create a new SenderKey Distribution object.
func (*JSONSenderKeyDistributionMessageSerializer) Serialize ¶
func (j *JSONSenderKeyDistributionMessageSerializer) Serialize(message *protocol.SenderKeyDistributionMessageStructure) []byte
Serialize will take a senderkey distribution message and convert it to JSON bytes.
type JSONSenderKeyMessageSerializer ¶
type JSONSenderKeyMessageSerializer struct{}
JSONSenderKeyMessageSerializer is a structure for serializing senderkey messages to and from JSON.
func (*JSONSenderKeyMessageSerializer) Deserialize ¶
func (j *JSONSenderKeyMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyMessageStructure, error)
Deserialize will take in JSON bytes and return a message structure, which can be used to create a new SenderKey message object.
func (*JSONSenderKeyMessageSerializer) Serialize ¶
func (j *JSONSenderKeyMessageSerializer) Serialize(message *protocol.SenderKeyMessageStructure) []byte
Serialize will take a senderkey message and convert it to JSON bytes.
type JSONSenderKeySessionSerializer ¶
type JSONSenderKeySessionSerializer struct{}
JSONSenderKeySessionSerializer is a structure for serializing session records into and from JSON.
func (*JSONSenderKeySessionSerializer) Deserialize ¶
func (j *JSONSenderKeySessionSerializer) Deserialize(serialized []byte) (*groupRecord.SenderKeyStructure, error)
Deserialize will take in JSON bytes and return a session structure, which can be used to create a new Session Record object.
func (*JSONSenderKeySessionSerializer) Serialize ¶
func (j *JSONSenderKeySessionSerializer) Serialize(session *groupRecord.SenderKeyStructure) []byte
Serialize will take a session structure and convert it to JSON bytes.
type JSONSenderKeyStateSerializer ¶
type JSONSenderKeyStateSerializer struct{}
JSONSenderKeyStateSerializer is a structure for serializing group session states into and from JSON.
func (*JSONSenderKeyStateSerializer) Deserialize ¶
func (j *JSONSenderKeyStateSerializer) Deserialize(serialized []byte) (*groupRecord.SenderKeyStateStructure, error)
Deserialize will take in JSON bytes and return a session state structure.
func (*JSONSenderKeyStateSerializer) Serialize ¶
func (j *JSONSenderKeyStateSerializer) Serialize(state *groupRecord.SenderKeyStateStructure) []byte
Serialize will take a session state structure and convert it to JSON bytes.
type JSONSessionSerializer ¶
type JSONSessionSerializer struct{}
JSONSessionSerializer is a structure for serializing session records into and from JSON.
func (*JSONSessionSerializer) Deserialize ¶
func (j *JSONSessionSerializer) Deserialize(serialized []byte) (*record.SessionStructure, error)
Deserialize will take in JSON bytes and return a session structure, which can be used to create a new Session Record object.
func (*JSONSessionSerializer) Serialize ¶
func (j *JSONSessionSerializer) Serialize(session *record.SessionStructure) []byte
Serialize will take a session structure and convert it to JSON bytes.
type JSONSignalMessageSerializer ¶
type JSONSignalMessageSerializer struct{}
JSONSignalMessageSerializer is a structure for serializing signal messages into and from JSON.
func (*JSONSignalMessageSerializer) Deserialize ¶
func (j *JSONSignalMessageSerializer) Deserialize(serialized []byte) (*protocol.SignalMessageStructure, error)
Deserialize will take in JSON bytes and return a signal message structure.
func (*JSONSignalMessageSerializer) Serialize ¶
func (j *JSONSignalMessageSerializer) Serialize(signalMessage *protocol.SignalMessageStructure) []byte
Serialize will take a signal message structure and convert it to JSON bytes.
type JSONSignedPreKeyRecordSerializer ¶
type JSONSignedPreKeyRecordSerializer struct{}
JSONSignedPreKeyRecordSerializer is a structure for serializing signed prekey records into and from JSON.
func (*JSONSignedPreKeyRecordSerializer) Deserialize ¶
func (j *JSONSignedPreKeyRecordSerializer) Deserialize(serialized []byte) (*record.SignedPreKeyStructure, error)
Deserialize will take in JSON bytes and return a signed prekey record structure.
func (*JSONSignedPreKeyRecordSerializer) Serialize ¶
func (j *JSONSignedPreKeyRecordSerializer) Serialize(signedPreKey *record.SignedPreKeyStructure) []byte
Serialize will take a signed prekey record structure and convert it to JSON bytes.
type JSONStateSerializer ¶
type JSONStateSerializer struct{}
JSONStateSerializer is a structure for serializing session states into and from JSON.
func (*JSONStateSerializer) Deserialize ¶
func (j *JSONStateSerializer) Deserialize(serialized []byte) (*record.StateStructure, error)
Deserialize will take in JSON bytes and return a session state structure.
func (*JSONStateSerializer) Serialize ¶
func (j *JSONStateSerializer) Serialize(state *record.StateStructure) []byte
Serialize will take a session state structure and convert it to JSON bytes.
type KeyExchangeMessage ¶
type KeyExchangeMessage struct { Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` BaseKey []byte `protobuf:"bytes,2,opt,name=baseKey" json:"baseKey,omitempty"` RatchetKey []byte `protobuf:"bytes,3,opt,name=ratchetKey" json:"ratchetKey,omitempty"` IdentityKey []byte `protobuf:"bytes,4,opt,name=identityKey" json:"identityKey,omitempty"` BaseKeySignature []byte `protobuf:"bytes,5,opt,name=baseKeySignature" json:"baseKeySignature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyExchangeMessage) Descriptor ¶
func (*KeyExchangeMessage) Descriptor() ([]byte, []int)
func (*KeyExchangeMessage) GetBaseKey ¶
func (m *KeyExchangeMessage) GetBaseKey() []byte
func (*KeyExchangeMessage) GetBaseKeySignature ¶
func (m *KeyExchangeMessage) GetBaseKeySignature() []byte
func (*KeyExchangeMessage) GetId ¶
func (m *KeyExchangeMessage) GetId() uint32
func (*KeyExchangeMessage) GetIdentityKey ¶
func (m *KeyExchangeMessage) GetIdentityKey() []byte
func (*KeyExchangeMessage) GetRatchetKey ¶
func (m *KeyExchangeMessage) GetRatchetKey() []byte
func (*KeyExchangeMessage) ProtoMessage ¶
func (*KeyExchangeMessage) ProtoMessage()
func (*KeyExchangeMessage) Reset ¶
func (m *KeyExchangeMessage) Reset()
func (*KeyExchangeMessage) String ¶
func (m *KeyExchangeMessage) String() string
func (*KeyExchangeMessage) XXX_DiscardUnknown ¶
func (m *KeyExchangeMessage) XXX_DiscardUnknown()
func (*KeyExchangeMessage) XXX_Marshal ¶
func (m *KeyExchangeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyExchangeMessage) XXX_Merge ¶
func (m *KeyExchangeMessage) XXX_Merge(src proto.Message)
func (*KeyExchangeMessage) XXX_Size ¶
func (m *KeyExchangeMessage) XXX_Size() int
func (*KeyExchangeMessage) XXX_Unmarshal ¶
func (m *KeyExchangeMessage) XXX_Unmarshal(b []byte) error
type LogicalFingerprint ¶
type LogicalFingerprint struct { Content []byte `protobuf:"bytes,1,opt,name=content" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogicalFingerprint) Descriptor ¶
func (*LogicalFingerprint) Descriptor() ([]byte, []int)
func (*LogicalFingerprint) GetContent ¶
func (m *LogicalFingerprint) GetContent() []byte
func (*LogicalFingerprint) ProtoMessage ¶
func (*LogicalFingerprint) ProtoMessage()
func (*LogicalFingerprint) Reset ¶
func (m *LogicalFingerprint) Reset()
func (*LogicalFingerprint) String ¶
func (m *LogicalFingerprint) String() string
func (*LogicalFingerprint) XXX_DiscardUnknown ¶
func (m *LogicalFingerprint) XXX_DiscardUnknown()
func (*LogicalFingerprint) XXX_Marshal ¶
func (m *LogicalFingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogicalFingerprint) XXX_Merge ¶
func (m *LogicalFingerprint) XXX_Merge(src proto.Message)
func (*LogicalFingerprint) XXX_Size ¶
func (m *LogicalFingerprint) XXX_Size() int
func (*LogicalFingerprint) XXX_Unmarshal ¶
func (m *LogicalFingerprint) XXX_Unmarshal(b []byte) error
type PreKeyRecordStructure ¶
type PreKeyRecordStructure struct { Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey" json:"publicKey,omitempty"` PrivateKey []byte `protobuf:"bytes,3,opt,name=privateKey" json:"privateKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PreKeyRecordStructure) Descriptor ¶
func (*PreKeyRecordStructure) Descriptor() ([]byte, []int)
func (*PreKeyRecordStructure) GetId ¶
func (m *PreKeyRecordStructure) GetId() uint32
func (*PreKeyRecordStructure) GetPrivateKey ¶
func (m *PreKeyRecordStructure) GetPrivateKey() []byte
func (*PreKeyRecordStructure) GetPublicKey ¶
func (m *PreKeyRecordStructure) GetPublicKey() []byte
func (*PreKeyRecordStructure) ProtoMessage ¶
func (*PreKeyRecordStructure) ProtoMessage()
func (*PreKeyRecordStructure) Reset ¶
func (m *PreKeyRecordStructure) Reset()
func (*PreKeyRecordStructure) String ¶
func (m *PreKeyRecordStructure) String() string
func (*PreKeyRecordStructure) XXX_DiscardUnknown ¶
func (m *PreKeyRecordStructure) XXX_DiscardUnknown()
func (*PreKeyRecordStructure) XXX_Marshal ¶
func (m *PreKeyRecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreKeyRecordStructure) XXX_Merge ¶
func (m *PreKeyRecordStructure) XXX_Merge(src proto.Message)
func (*PreKeyRecordStructure) XXX_Size ¶
func (m *PreKeyRecordStructure) XXX_Size() int
func (*PreKeyRecordStructure) XXX_Unmarshal ¶
func (m *PreKeyRecordStructure) XXX_Unmarshal(b []byte) error
type PreKeySignalMessage ¶
type PreKeySignalMessage struct { RegistrationId *uint32 `protobuf:"varint,5,opt,name=registrationId" json:"registrationId,omitempty"` PreKeyId *uint32 `protobuf:"varint,1,opt,name=preKeyId" json:"preKeyId,omitempty"` SignedPreKeyId *uint32 `protobuf:"varint,6,opt,name=signedPreKeyId" json:"signedPreKeyId,omitempty"` BaseKey []byte `protobuf:"bytes,2,opt,name=baseKey" json:"baseKey,omitempty"` IdentityKey []byte `protobuf:"bytes,3,opt,name=identityKey" json:"identityKey,omitempty"` Message []byte `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PreKeySignalMessage) Descriptor ¶
func (*PreKeySignalMessage) Descriptor() ([]byte, []int)
func (*PreKeySignalMessage) GetBaseKey ¶
func (m *PreKeySignalMessage) GetBaseKey() []byte
func (*PreKeySignalMessage) GetIdentityKey ¶
func (m *PreKeySignalMessage) GetIdentityKey() []byte
func (*PreKeySignalMessage) GetMessage ¶
func (m *PreKeySignalMessage) GetMessage() []byte
func (*PreKeySignalMessage) GetPreKeyId ¶
func (m *PreKeySignalMessage) GetPreKeyId() uint32
func (*PreKeySignalMessage) GetRegistrationId ¶
func (m *PreKeySignalMessage) GetRegistrationId() uint32
func (*PreKeySignalMessage) GetSignedPreKeyId ¶
func (m *PreKeySignalMessage) GetSignedPreKeyId() uint32
func (*PreKeySignalMessage) ProtoMessage ¶
func (*PreKeySignalMessage) ProtoMessage()
func (*PreKeySignalMessage) Reset ¶
func (m *PreKeySignalMessage) Reset()
func (*PreKeySignalMessage) String ¶
func (m *PreKeySignalMessage) String() string
func (*PreKeySignalMessage) XXX_DiscardUnknown ¶
func (m *PreKeySignalMessage) XXX_DiscardUnknown()
func (*PreKeySignalMessage) XXX_Marshal ¶
func (m *PreKeySignalMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreKeySignalMessage) XXX_Merge ¶
func (m *PreKeySignalMessage) XXX_Merge(src proto.Message)
func (*PreKeySignalMessage) XXX_Size ¶
func (m *PreKeySignalMessage) XXX_Size() int
func (*PreKeySignalMessage) XXX_Unmarshal ¶
func (m *PreKeySignalMessage) XXX_Unmarshal(b []byte) error
type ProtoBufPreKeySignalMessageSerializer ¶
type ProtoBufPreKeySignalMessageSerializer struct{}
ProtoBufPreKeySignalMessageSerializer is a structure for serializing prekey signal messages into and from ProtoBuf.
func (*ProtoBufPreKeySignalMessageSerializer) Deserialize ¶
func (j *ProtoBufPreKeySignalMessageSerializer) Deserialize(serialized []byte) (*protocol.PreKeySignalMessageStructure, error)
Deserialize will take in ProtoBuf bytes and return a prekey signal message structure.
func (*ProtoBufPreKeySignalMessageSerializer) Serialize ¶
func (j *ProtoBufPreKeySignalMessageSerializer) Serialize(signalMessage *protocol.PreKeySignalMessageStructure) []byte
Serialize will take a prekey signal message structure and convert it to ProtoBuf bytes.
type ProtoBufSenderKeyDistributionMessageSerializer ¶
type ProtoBufSenderKeyDistributionMessageSerializer struct{}
ProtoBufSenderKeyDistributionMessageSerializer is a structure for serializing senderkey distribution records to and from ProtoBuf.
func (*ProtoBufSenderKeyDistributionMessageSerializer) Deserialize ¶
func (j *ProtoBufSenderKeyDistributionMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyDistributionMessageStructure, error)
Deserialize will take in ProtoBuf bytes and return a message structure, which can be used to create a new SenderKey Distribution object.
func (*ProtoBufSenderKeyDistributionMessageSerializer) Serialize ¶
func (j *ProtoBufSenderKeyDistributionMessageSerializer) Serialize(message *protocol.SenderKeyDistributionMessageStructure) []byte
Serialize will take a senderkey distribution message and convert it to ProtoBuf bytes.
type ProtoBufSenderKeyMessageSerializer ¶
type ProtoBufSenderKeyMessageSerializer struct{}
ProtoBufSenderKeyMessageSerializer is a structure for serializing senderkey messages to and from ProtoBuf.
func (*ProtoBufSenderKeyMessageSerializer) Deserialize ¶
func (j *ProtoBufSenderKeyMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyMessageStructure, error)
Deserialize will take in ProtoBuf bytes and return a message structure, which can be used to create a new SenderKey message object.
func (*ProtoBufSenderKeyMessageSerializer) Serialize ¶
func (j *ProtoBufSenderKeyMessageSerializer) Serialize(message *protocol.SenderKeyMessageStructure) []byte
Serialize will take a senderkey message and convert it to ProtoBuf bytes.
type ProtoBufSignalMessageSerializer ¶
type ProtoBufSignalMessageSerializer struct{}
ProtoBufSignalMessageSerializer is a structure for serializing signal messages into and from ProtoBuf.
func (*ProtoBufSignalMessageSerializer) Deserialize ¶
func (j *ProtoBufSignalMessageSerializer) Deserialize(serialized []byte) (*protocol.SignalMessageStructure, error)
Deserialize will take in ProtoBuf bytes and return a signal message structure.
func (*ProtoBufSignalMessageSerializer) Serialize ¶
func (j *ProtoBufSignalMessageSerializer) Serialize(signalMessage *protocol.SignalMessageStructure) []byte
Serialize will take a signal message structure and convert it to ProtoBuf bytes.
type RecordStructure ¶
type RecordStructure struct { CurrentSession *SessionStructure `protobuf:"bytes,1,opt,name=currentSession" json:"currentSession,omitempty"` PreviousSessions []*SessionStructure `protobuf:"bytes,2,rep,name=previousSessions" json:"previousSessions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecordStructure) Descriptor ¶
func (*RecordStructure) Descriptor() ([]byte, []int)
func (*RecordStructure) GetCurrentSession ¶
func (m *RecordStructure) GetCurrentSession() *SessionStructure
func (*RecordStructure) GetPreviousSessions ¶
func (m *RecordStructure) GetPreviousSessions() []*SessionStructure
func (*RecordStructure) ProtoMessage ¶
func (*RecordStructure) ProtoMessage()
func (*RecordStructure) Reset ¶
func (m *RecordStructure) Reset()
func (*RecordStructure) String ¶
func (m *RecordStructure) String() string
func (*RecordStructure) XXX_DiscardUnknown ¶
func (m *RecordStructure) XXX_DiscardUnknown()
func (*RecordStructure) XXX_Marshal ¶
func (m *RecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecordStructure) XXX_Merge ¶
func (m *RecordStructure) XXX_Merge(src proto.Message)
func (*RecordStructure) XXX_Size ¶
func (m *RecordStructure) XXX_Size() int
func (*RecordStructure) XXX_Unmarshal ¶
func (m *RecordStructure) XXX_Unmarshal(b []byte) error
type SenderKeyDistributionMessage ¶
type SenderKeyDistributionMessage struct { Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Iteration *uint32 `protobuf:"varint,2,opt,name=iteration" json:"iteration,omitempty"` ChainKey []byte `protobuf:"bytes,3,opt,name=chainKey" json:"chainKey,omitempty"` SigningKey []byte `protobuf:"bytes,4,opt,name=signingKey" json:"signingKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SenderKeyDistributionMessage) Descriptor ¶
func (*SenderKeyDistributionMessage) Descriptor() ([]byte, []int)
func (*SenderKeyDistributionMessage) GetChainKey ¶
func (m *SenderKeyDistributionMessage) GetChainKey() []byte
func (*SenderKeyDistributionMessage) GetId ¶
func (m *SenderKeyDistributionMessage) GetId() uint32
func (*SenderKeyDistributionMessage) GetIteration ¶
func (m *SenderKeyDistributionMessage) GetIteration() uint32
func (*SenderKeyDistributionMessage) GetSigningKey ¶
func (m *SenderKeyDistributionMessage) GetSigningKey() []byte
func (*SenderKeyDistributionMessage) ProtoMessage ¶
func (*SenderKeyDistributionMessage) ProtoMessage()
func (*SenderKeyDistributionMessage) Reset ¶
func (m *SenderKeyDistributionMessage) Reset()
func (*SenderKeyDistributionMessage) String ¶
func (m *SenderKeyDistributionMessage) String() string
func (*SenderKeyDistributionMessage) XXX_DiscardUnknown ¶
func (m *SenderKeyDistributionMessage) XXX_DiscardUnknown()
func (*SenderKeyDistributionMessage) XXX_Marshal ¶
func (m *SenderKeyDistributionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SenderKeyDistributionMessage) XXX_Merge ¶
func (m *SenderKeyDistributionMessage) XXX_Merge(src proto.Message)
func (*SenderKeyDistributionMessage) XXX_Size ¶
func (m *SenderKeyDistributionMessage) XXX_Size() int
func (*SenderKeyDistributionMessage) XXX_Unmarshal ¶
func (m *SenderKeyDistributionMessage) XXX_Unmarshal(b []byte) error
type SenderKeyMessage ¶
type SenderKeyMessage struct { Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Iteration *uint32 `protobuf:"varint,2,opt,name=iteration" json:"iteration,omitempty"` Ciphertext []byte `protobuf:"bytes,3,opt,name=ciphertext" json:"ciphertext,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SenderKeyMessage) Descriptor ¶
func (*SenderKeyMessage) Descriptor() ([]byte, []int)
func (*SenderKeyMessage) GetCiphertext ¶
func (m *SenderKeyMessage) GetCiphertext() []byte
func (*SenderKeyMessage) GetId ¶
func (m *SenderKeyMessage) GetId() uint32
func (*SenderKeyMessage) GetIteration ¶
func (m *SenderKeyMessage) GetIteration() uint32
func (*SenderKeyMessage) ProtoMessage ¶
func (*SenderKeyMessage) ProtoMessage()
func (*SenderKeyMessage) Reset ¶
func (m *SenderKeyMessage) Reset()
func (*SenderKeyMessage) String ¶
func (m *SenderKeyMessage) String() string
func (*SenderKeyMessage) XXX_DiscardUnknown ¶
func (m *SenderKeyMessage) XXX_DiscardUnknown()
func (*SenderKeyMessage) XXX_Marshal ¶
func (m *SenderKeyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SenderKeyMessage) XXX_Merge ¶
func (m *SenderKeyMessage) XXX_Merge(src proto.Message)
func (*SenderKeyMessage) XXX_Size ¶
func (m *SenderKeyMessage) XXX_Size() int
func (*SenderKeyMessage) XXX_Unmarshal ¶
func (m *SenderKeyMessage) XXX_Unmarshal(b []byte) error
type SenderKeyRecordStructure ¶
type SenderKeyRecordStructure struct { SenderKeyStates []*SenderKeyStateStructure `protobuf:"bytes,1,rep,name=senderKeyStates" json:"senderKeyStates,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SenderKeyRecordStructure) Descriptor ¶
func (*SenderKeyRecordStructure) Descriptor() ([]byte, []int)
func (*SenderKeyRecordStructure) GetSenderKeyStates ¶
func (m *SenderKeyRecordStructure) GetSenderKeyStates() []*SenderKeyStateStructure
func (*SenderKeyRecordStructure) ProtoMessage ¶
func (*SenderKeyRecordStructure) ProtoMessage()
func (*SenderKeyRecordStructure) Reset ¶
func (m *SenderKeyRecordStructure) Reset()
func (*SenderKeyRecordStructure) String ¶
func (m *SenderKeyRecordStructure) String() string
func (*SenderKeyRecordStructure) XXX_DiscardUnknown ¶
func (m *SenderKeyRecordStructure) XXX_DiscardUnknown()
func (*SenderKeyRecordStructure) XXX_Marshal ¶
func (m *SenderKeyRecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SenderKeyRecordStructure) XXX_Merge ¶
func (m *SenderKeyRecordStructure) XXX_Merge(src proto.Message)
func (*SenderKeyRecordStructure) XXX_Size ¶
func (m *SenderKeyRecordStructure) XXX_Size() int
func (*SenderKeyRecordStructure) XXX_Unmarshal ¶
func (m *SenderKeyRecordStructure) XXX_Unmarshal(b []byte) error
type SenderKeyStateStructure ¶
type SenderKeyStateStructure struct { SenderKeyId *uint32 `protobuf:"varint,1,opt,name=senderKeyId" json:"senderKeyId,omitempty"` SenderChainKey *SenderKeyStateStructure_SenderChainKey `protobuf:"bytes,2,opt,name=senderChainKey" json:"senderChainKey,omitempty"` SenderSigningKey *SenderKeyStateStructure_SenderSigningKey `protobuf:"bytes,3,opt,name=senderSigningKey" json:"senderSigningKey,omitempty"` SenderMessageKeys []*SenderKeyStateStructure_SenderMessageKey `protobuf:"bytes,4,rep,name=senderMessageKeys" json:"senderMessageKeys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SenderKeyStateStructure) Descriptor ¶
func (*SenderKeyStateStructure) Descriptor() ([]byte, []int)
func (*SenderKeyStateStructure) GetSenderChainKey ¶
func (m *SenderKeyStateStructure) GetSenderChainKey() *SenderKeyStateStructure_SenderChainKey
func (*SenderKeyStateStructure) GetSenderKeyId ¶
func (m *SenderKeyStateStructure) GetSenderKeyId() uint32
func (*SenderKeyStateStructure) GetSenderMessageKeys ¶
func (m *SenderKeyStateStructure) GetSenderMessageKeys() []*SenderKeyStateStructure_SenderMessageKey
func (*SenderKeyStateStructure) GetSenderSigningKey ¶
func (m *SenderKeyStateStructure) GetSenderSigningKey() *SenderKeyStateStructure_SenderSigningKey
func (*SenderKeyStateStructure) ProtoMessage ¶
func (*SenderKeyStateStructure) ProtoMessage()
func (*SenderKeyStateStructure) Reset ¶
func (m *SenderKeyStateStructure) Reset()
func (*SenderKeyStateStructure) String ¶
func (m *SenderKeyStateStructure) String() string
func (*SenderKeyStateStructure) XXX_DiscardUnknown ¶
func (m *SenderKeyStateStructure) XXX_DiscardUnknown()
func (*SenderKeyStateStructure) XXX_Marshal ¶
func (m *SenderKeyStateStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SenderKeyStateStructure) XXX_Merge ¶
func (m *SenderKeyStateStructure) XXX_Merge(src proto.Message)
func (*SenderKeyStateStructure) XXX_Size ¶
func (m *SenderKeyStateStructure) XXX_Size() int
func (*SenderKeyStateStructure) XXX_Unmarshal ¶
func (m *SenderKeyStateStructure) XXX_Unmarshal(b []byte) error
type SenderKeyStateStructure_SenderChainKey ¶
type SenderKeyStateStructure_SenderChainKey struct { Iteration *uint32 `protobuf:"varint,1,opt,name=iteration" json:"iteration,omitempty"` Seed []byte `protobuf:"bytes,2,opt,name=seed" json:"seed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SenderKeyStateStructure_SenderChainKey) Descriptor ¶
func (*SenderKeyStateStructure_SenderChainKey) Descriptor() ([]byte, []int)
func (*SenderKeyStateStructure_SenderChainKey) GetIteration ¶
func (m *SenderKeyStateStructure_SenderChainKey) GetIteration() uint32
func (*SenderKeyStateStructure_SenderChainKey) GetSeed ¶
func (m *SenderKeyStateStructure_SenderChainKey) GetSeed() []byte
func (*SenderKeyStateStructure_SenderChainKey) ProtoMessage ¶
func (*SenderKeyStateStructure_SenderChainKey) ProtoMessage()
func (*SenderKeyStateStructure_SenderChainKey) Reset ¶
func (m *SenderKeyStateStructure_SenderChainKey) Reset()
func (*SenderKeyStateStructure_SenderChainKey) String ¶
func (m *SenderKeyStateStructure_SenderChainKey) String() string
func (*SenderKeyStateStructure_SenderChainKey) XXX_DiscardUnknown ¶
func (m *SenderKeyStateStructure_SenderChainKey) XXX_DiscardUnknown()
func (*SenderKeyStateStructure_SenderChainKey) XXX_Marshal ¶
func (m *SenderKeyStateStructure_SenderChainKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SenderKeyStateStructure_SenderChainKey) XXX_Merge ¶
func (m *SenderKeyStateStructure_SenderChainKey) XXX_Merge(src proto.Message)
func (*SenderKeyStateStructure_SenderChainKey) XXX_Size ¶
func (m *SenderKeyStateStructure_SenderChainKey) XXX_Size() int
func (*SenderKeyStateStructure_SenderChainKey) XXX_Unmarshal ¶
func (m *SenderKeyStateStructure_SenderChainKey) XXX_Unmarshal(b []byte) error
type SenderKeyStateStructure_SenderMessageKey ¶
type SenderKeyStateStructure_SenderMessageKey struct { Iteration *uint32 `protobuf:"varint,1,opt,name=iteration" json:"iteration,omitempty"` Seed []byte `protobuf:"bytes,2,opt,name=seed" json:"seed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SenderKeyStateStructure_SenderMessageKey) Descriptor ¶
func (*SenderKeyStateStructure_SenderMessageKey) Descriptor() ([]byte, []int)
func (*SenderKeyStateStructure_SenderMessageKey) GetIteration ¶
func (m *SenderKeyStateStructure_SenderMessageKey) GetIteration() uint32
func (*SenderKeyStateStructure_SenderMessageKey) GetSeed ¶
func (m *SenderKeyStateStructure_SenderMessageKey) GetSeed() []byte
func (*SenderKeyStateStructure_SenderMessageKey) ProtoMessage ¶
func (*SenderKeyStateStructure_SenderMessageKey) ProtoMessage()
func (*SenderKeyStateStructure_SenderMessageKey) Reset ¶
func (m *SenderKeyStateStructure_SenderMessageKey) Reset()
func (*SenderKeyStateStructure_SenderMessageKey) String ¶
func (m *SenderKeyStateStructure_SenderMessageKey) String() string
func (*SenderKeyStateStructure_SenderMessageKey) XXX_DiscardUnknown ¶
func (m *SenderKeyStateStructure_SenderMessageKey) XXX_DiscardUnknown()
func (*SenderKeyStateStructure_SenderMessageKey) XXX_Marshal ¶
func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SenderKeyStateStructure_SenderMessageKey) XXX_Merge ¶
func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Merge(src proto.Message)
func (*SenderKeyStateStructure_SenderMessageKey) XXX_Size ¶
func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Size() int
func (*SenderKeyStateStructure_SenderMessageKey) XXX_Unmarshal ¶
func (m *SenderKeyStateStructure_SenderMessageKey) XXX_Unmarshal(b []byte) error
type SenderKeyStateStructure_SenderSigningKey ¶
type SenderKeyStateStructure_SenderSigningKey struct { Public []byte `protobuf:"bytes,1,opt,name=public" json:"public,omitempty"` Private []byte `protobuf:"bytes,2,opt,name=private" json:"private,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SenderKeyStateStructure_SenderSigningKey) Descriptor ¶
func (*SenderKeyStateStructure_SenderSigningKey) Descriptor() ([]byte, []int)
func (*SenderKeyStateStructure_SenderSigningKey) GetPrivate ¶
func (m *SenderKeyStateStructure_SenderSigningKey) GetPrivate() []byte
func (*SenderKeyStateStructure_SenderSigningKey) GetPublic ¶
func (m *SenderKeyStateStructure_SenderSigningKey) GetPublic() []byte
func (*SenderKeyStateStructure_SenderSigningKey) ProtoMessage ¶
func (*SenderKeyStateStructure_SenderSigningKey) ProtoMessage()
func (*SenderKeyStateStructure_SenderSigningKey) Reset ¶
func (m *SenderKeyStateStructure_SenderSigningKey) Reset()
func (*SenderKeyStateStructure_SenderSigningKey) String ¶
func (m *SenderKeyStateStructure_SenderSigningKey) String() string
func (*SenderKeyStateStructure_SenderSigningKey) XXX_DiscardUnknown ¶
func (m *SenderKeyStateStructure_SenderSigningKey) XXX_DiscardUnknown()
func (*SenderKeyStateStructure_SenderSigningKey) XXX_Marshal ¶
func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SenderKeyStateStructure_SenderSigningKey) XXX_Merge ¶
func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Merge(src proto.Message)
func (*SenderKeyStateStructure_SenderSigningKey) XXX_Size ¶
func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Size() int
func (*SenderKeyStateStructure_SenderSigningKey) XXX_Unmarshal ¶
func (m *SenderKeyStateStructure_SenderSigningKey) XXX_Unmarshal(b []byte) error
type Serializer ¶
type Serializer struct { SenderKeyRecord groupRecord.SenderKeySerializer SenderKeyState groupRecord.SenderKeyStateSerializer SignalMessage protocol.SignalMessageSerializer PreKeySignalMessage protocol.PreKeySignalMessageSerializer SenderKeyMessage protocol.SenderKeyMessageSerializer SenderKeyDistributionMessage protocol.SenderKeyDistributionMessageSerializer SignedPreKeyRecord record.SignedPreKeySerializer PreKeyRecord record.PreKeySerializer State record.StateSerializer Session record.SessionSerializer }
Serializer is a structure to serialize Signal objects into bytes. This allows you to use any serialization format to store or send Signal objects.
func NewJSONSerializer ¶
func NewJSONSerializer() *Serializer
NewJSONSerializer will return a serializer for all Signal objects that will be responsible for converting objects to and from JSON bytes.
func NewProtoBufSerializer ¶
func NewProtoBufSerializer() *Serializer
NewProtoBufSerializer will return a serializer for all Signal objects that will be responsible for converting objects to and from ProtoBuf bytes.
func NewSerializer ¶
func NewSerializer() *Serializer
NewSerializer will return a new serializer object that will be used to encode/decode Signal objects into bytes.
type SessionStructure ¶
type SessionStructure struct { SessionVersion *uint32 `protobuf:"varint,1,opt,name=sessionVersion" json:"sessionVersion,omitempty"` LocalIdentityPublic []byte `protobuf:"bytes,2,opt,name=localIdentityPublic" json:"localIdentityPublic,omitempty"` RemoteIdentityPublic []byte `protobuf:"bytes,3,opt,name=remoteIdentityPublic" json:"remoteIdentityPublic,omitempty"` RootKey []byte `protobuf:"bytes,4,opt,name=rootKey" json:"rootKey,omitempty"` PreviousCounter *uint32 `protobuf:"varint,5,opt,name=previousCounter" json:"previousCounter,omitempty"` SenderChain *SessionStructure_Chain `protobuf:"bytes,6,opt,name=senderChain" json:"senderChain,omitempty"` ReceiverChains []*SessionStructure_Chain `protobuf:"bytes,7,rep,name=receiverChains" json:"receiverChains,omitempty"` PendingKeyExchange *SessionStructure_PendingKeyExchange `protobuf:"bytes,8,opt,name=pendingKeyExchange" json:"pendingKeyExchange,omitempty"` PendingPreKey *SessionStructure_PendingPreKey `protobuf:"bytes,9,opt,name=pendingPreKey" json:"pendingPreKey,omitempty"` RemoteRegistrationId *uint32 `protobuf:"varint,10,opt,name=remoteRegistrationId" json:"remoteRegistrationId,omitempty"` LocalRegistrationId *uint32 `protobuf:"varint,11,opt,name=localRegistrationId" json:"localRegistrationId,omitempty"` NeedsRefresh *bool `protobuf:"varint,12,opt,name=needsRefresh" json:"needsRefresh,omitempty"` AliceBaseKey []byte `protobuf:"bytes,13,opt,name=aliceBaseKey" json:"aliceBaseKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionStructure) Descriptor ¶
func (*SessionStructure) Descriptor() ([]byte, []int)
func (*SessionStructure) GetAliceBaseKey ¶
func (m *SessionStructure) GetAliceBaseKey() []byte
func (*SessionStructure) GetLocalIdentityPublic ¶
func (m *SessionStructure) GetLocalIdentityPublic() []byte
func (*SessionStructure) GetLocalRegistrationId ¶
func (m *SessionStructure) GetLocalRegistrationId() uint32
func (*SessionStructure) GetNeedsRefresh ¶
func (m *SessionStructure) GetNeedsRefresh() bool
func (*SessionStructure) GetPendingKeyExchange ¶
func (m *SessionStructure) GetPendingKeyExchange() *SessionStructure_PendingKeyExchange
func (*SessionStructure) GetPendingPreKey ¶
func (m *SessionStructure) GetPendingPreKey() *SessionStructure_PendingPreKey
func (*SessionStructure) GetPreviousCounter ¶
func (m *SessionStructure) GetPreviousCounter() uint32
func (*SessionStructure) GetReceiverChains ¶
func (m *SessionStructure) GetReceiverChains() []*SessionStructure_Chain
func (*SessionStructure) GetRemoteIdentityPublic ¶
func (m *SessionStructure) GetRemoteIdentityPublic() []byte
func (*SessionStructure) GetRemoteRegistrationId ¶
func (m *SessionStructure) GetRemoteRegistrationId() uint32
func (*SessionStructure) GetRootKey ¶
func (m *SessionStructure) GetRootKey() []byte
func (*SessionStructure) GetSenderChain ¶
func (m *SessionStructure) GetSenderChain() *SessionStructure_Chain
func (*SessionStructure) GetSessionVersion ¶
func (m *SessionStructure) GetSessionVersion() uint32
func (*SessionStructure) ProtoMessage ¶
func (*SessionStructure) ProtoMessage()
func (*SessionStructure) Reset ¶
func (m *SessionStructure) Reset()
func (*SessionStructure) String ¶
func (m *SessionStructure) String() string
func (*SessionStructure) XXX_DiscardUnknown ¶
func (m *SessionStructure) XXX_DiscardUnknown()
func (*SessionStructure) XXX_Marshal ¶
func (m *SessionStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionStructure) XXX_Merge ¶
func (m *SessionStructure) XXX_Merge(src proto.Message)
func (*SessionStructure) XXX_Size ¶
func (m *SessionStructure) XXX_Size() int
func (*SessionStructure) XXX_Unmarshal ¶
func (m *SessionStructure) XXX_Unmarshal(b []byte) error
type SessionStructure_Chain ¶
type SessionStructure_Chain struct { SenderRatchetKey []byte `protobuf:"bytes,1,opt,name=senderRatchetKey" json:"senderRatchetKey,omitempty"` SenderRatchetKeyPrivate []byte `protobuf:"bytes,2,opt,name=senderRatchetKeyPrivate" json:"senderRatchetKeyPrivate,omitempty"` ChainKey *SessionStructure_Chain_ChainKey `protobuf:"bytes,3,opt,name=chainKey" json:"chainKey,omitempty"` MessageKeys []*SessionStructure_Chain_MessageKey `protobuf:"bytes,4,rep,name=messageKeys" json:"messageKeys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionStructure_Chain) Descriptor ¶
func (*SessionStructure_Chain) Descriptor() ([]byte, []int)
func (*SessionStructure_Chain) GetChainKey ¶
func (m *SessionStructure_Chain) GetChainKey() *SessionStructure_Chain_ChainKey
func (*SessionStructure_Chain) GetMessageKeys ¶
func (m *SessionStructure_Chain) GetMessageKeys() []*SessionStructure_Chain_MessageKey
func (*SessionStructure_Chain) GetSenderRatchetKey ¶
func (m *SessionStructure_Chain) GetSenderRatchetKey() []byte
func (*SessionStructure_Chain) GetSenderRatchetKeyPrivate ¶
func (m *SessionStructure_Chain) GetSenderRatchetKeyPrivate() []byte
func (*SessionStructure_Chain) ProtoMessage ¶
func (*SessionStructure_Chain) ProtoMessage()
func (*SessionStructure_Chain) Reset ¶
func (m *SessionStructure_Chain) Reset()
func (*SessionStructure_Chain) String ¶
func (m *SessionStructure_Chain) String() string
func (*SessionStructure_Chain) XXX_DiscardUnknown ¶
func (m *SessionStructure_Chain) XXX_DiscardUnknown()
func (*SessionStructure_Chain) XXX_Marshal ¶
func (m *SessionStructure_Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionStructure_Chain) XXX_Merge ¶
func (m *SessionStructure_Chain) XXX_Merge(src proto.Message)
func (*SessionStructure_Chain) XXX_Size ¶
func (m *SessionStructure_Chain) XXX_Size() int
func (*SessionStructure_Chain) XXX_Unmarshal ¶
func (m *SessionStructure_Chain) XXX_Unmarshal(b []byte) error
type SessionStructure_Chain_ChainKey ¶
type SessionStructure_Chain_ChainKey struct { Index *uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionStructure_Chain_ChainKey) Descriptor ¶
func (*SessionStructure_Chain_ChainKey) Descriptor() ([]byte, []int)
func (*SessionStructure_Chain_ChainKey) GetIndex ¶
func (m *SessionStructure_Chain_ChainKey) GetIndex() uint32
func (*SessionStructure_Chain_ChainKey) GetKey ¶
func (m *SessionStructure_Chain_ChainKey) GetKey() []byte
func (*SessionStructure_Chain_ChainKey) ProtoMessage ¶
func (*SessionStructure_Chain_ChainKey) ProtoMessage()
func (*SessionStructure_Chain_ChainKey) Reset ¶
func (m *SessionStructure_Chain_ChainKey) Reset()
func (*SessionStructure_Chain_ChainKey) String ¶
func (m *SessionStructure_Chain_ChainKey) String() string
func (*SessionStructure_Chain_ChainKey) XXX_DiscardUnknown ¶
func (m *SessionStructure_Chain_ChainKey) XXX_DiscardUnknown()
func (*SessionStructure_Chain_ChainKey) XXX_Marshal ¶
func (m *SessionStructure_Chain_ChainKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionStructure_Chain_ChainKey) XXX_Merge ¶
func (m *SessionStructure_Chain_ChainKey) XXX_Merge(src proto.Message)
func (*SessionStructure_Chain_ChainKey) XXX_Size ¶
func (m *SessionStructure_Chain_ChainKey) XXX_Size() int
func (*SessionStructure_Chain_ChainKey) XXX_Unmarshal ¶
func (m *SessionStructure_Chain_ChainKey) XXX_Unmarshal(b []byte) error
type SessionStructure_Chain_MessageKey ¶
type SessionStructure_Chain_MessageKey struct { Index *uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` CipherKey []byte `protobuf:"bytes,2,opt,name=cipherKey" json:"cipherKey,omitempty"` MacKey []byte `protobuf:"bytes,3,opt,name=macKey" json:"macKey,omitempty"` Iv []byte `protobuf:"bytes,4,opt,name=iv" json:"iv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionStructure_Chain_MessageKey) Descriptor ¶
func (*SessionStructure_Chain_MessageKey) Descriptor() ([]byte, []int)
func (*SessionStructure_Chain_MessageKey) GetCipherKey ¶
func (m *SessionStructure_Chain_MessageKey) GetCipherKey() []byte
func (*SessionStructure_Chain_MessageKey) GetIndex ¶
func (m *SessionStructure_Chain_MessageKey) GetIndex() uint32
func (*SessionStructure_Chain_MessageKey) GetIv ¶
func (m *SessionStructure_Chain_MessageKey) GetIv() []byte
func (*SessionStructure_Chain_MessageKey) GetMacKey ¶
func (m *SessionStructure_Chain_MessageKey) GetMacKey() []byte
func (*SessionStructure_Chain_MessageKey) ProtoMessage ¶
func (*SessionStructure_Chain_MessageKey) ProtoMessage()
func (*SessionStructure_Chain_MessageKey) Reset ¶
func (m *SessionStructure_Chain_MessageKey) Reset()
func (*SessionStructure_Chain_MessageKey) String ¶
func (m *SessionStructure_Chain_MessageKey) String() string
func (*SessionStructure_Chain_MessageKey) XXX_DiscardUnknown ¶
func (m *SessionStructure_Chain_MessageKey) XXX_DiscardUnknown()
func (*SessionStructure_Chain_MessageKey) XXX_Marshal ¶
func (m *SessionStructure_Chain_MessageKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionStructure_Chain_MessageKey) XXX_Merge ¶
func (m *SessionStructure_Chain_MessageKey) XXX_Merge(src proto.Message)
func (*SessionStructure_Chain_MessageKey) XXX_Size ¶
func (m *SessionStructure_Chain_MessageKey) XXX_Size() int
func (*SessionStructure_Chain_MessageKey) XXX_Unmarshal ¶
func (m *SessionStructure_Chain_MessageKey) XXX_Unmarshal(b []byte) error
type SessionStructure_PendingKeyExchange ¶
type SessionStructure_PendingKeyExchange struct { Sequence *uint32 `protobuf:"varint,1,opt,name=sequence" json:"sequence,omitempty"` LocalBaseKey []byte `protobuf:"bytes,2,opt,name=localBaseKey" json:"localBaseKey,omitempty"` LocalBaseKeyPrivate []byte `protobuf:"bytes,3,opt,name=localBaseKeyPrivate" json:"localBaseKeyPrivate,omitempty"` LocalRatchetKey []byte `protobuf:"bytes,4,opt,name=localRatchetKey" json:"localRatchetKey,omitempty"` LocalRatchetKeyPrivate []byte `protobuf:"bytes,5,opt,name=localRatchetKeyPrivate" json:"localRatchetKeyPrivate,omitempty"` LocalIdentityKey []byte `protobuf:"bytes,7,opt,name=localIdentityKey" json:"localIdentityKey,omitempty"` LocalIdentityKeyPrivate []byte `protobuf:"bytes,8,opt,name=localIdentityKeyPrivate" json:"localIdentityKeyPrivate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionStructure_PendingKeyExchange) Descriptor ¶
func (*SessionStructure_PendingKeyExchange) Descriptor() ([]byte, []int)
func (*SessionStructure_PendingKeyExchange) GetLocalBaseKey ¶
func (m *SessionStructure_PendingKeyExchange) GetLocalBaseKey() []byte
func (*SessionStructure_PendingKeyExchange) GetLocalBaseKeyPrivate ¶
func (m *SessionStructure_PendingKeyExchange) GetLocalBaseKeyPrivate() []byte
func (*SessionStructure_PendingKeyExchange) GetLocalIdentityKey ¶
func (m *SessionStructure_PendingKeyExchange) GetLocalIdentityKey() []byte
func (*SessionStructure_PendingKeyExchange) GetLocalIdentityKeyPrivate ¶
func (m *SessionStructure_PendingKeyExchange) GetLocalIdentityKeyPrivate() []byte
func (*SessionStructure_PendingKeyExchange) GetLocalRatchetKey ¶
func (m *SessionStructure_PendingKeyExchange) GetLocalRatchetKey() []byte
func (*SessionStructure_PendingKeyExchange) GetLocalRatchetKeyPrivate ¶
func (m *SessionStructure_PendingKeyExchange) GetLocalRatchetKeyPrivate() []byte
func (*SessionStructure_PendingKeyExchange) GetSequence ¶
func (m *SessionStructure_PendingKeyExchange) GetSequence() uint32
func (*SessionStructure_PendingKeyExchange) ProtoMessage ¶
func (*SessionStructure_PendingKeyExchange) ProtoMessage()
func (*SessionStructure_PendingKeyExchange) Reset ¶
func (m *SessionStructure_PendingKeyExchange) Reset()
func (*SessionStructure_PendingKeyExchange) String ¶
func (m *SessionStructure_PendingKeyExchange) String() string
func (*SessionStructure_PendingKeyExchange) XXX_DiscardUnknown ¶
func (m *SessionStructure_PendingKeyExchange) XXX_DiscardUnknown()
func (*SessionStructure_PendingKeyExchange) XXX_Marshal ¶
func (m *SessionStructure_PendingKeyExchange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionStructure_PendingKeyExchange) XXX_Merge ¶
func (m *SessionStructure_PendingKeyExchange) XXX_Merge(src proto.Message)
func (*SessionStructure_PendingKeyExchange) XXX_Size ¶
func (m *SessionStructure_PendingKeyExchange) XXX_Size() int
func (*SessionStructure_PendingKeyExchange) XXX_Unmarshal ¶
func (m *SessionStructure_PendingKeyExchange) XXX_Unmarshal(b []byte) error
type SessionStructure_PendingPreKey ¶
type SessionStructure_PendingPreKey struct { PreKeyId *uint32 `protobuf:"varint,1,opt,name=preKeyId" json:"preKeyId,omitempty"` SignedPreKeyId *int32 `protobuf:"varint,3,opt,name=signedPreKeyId" json:"signedPreKeyId,omitempty"` BaseKey []byte `protobuf:"bytes,2,opt,name=baseKey" json:"baseKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionStructure_PendingPreKey) Descriptor ¶
func (*SessionStructure_PendingPreKey) Descriptor() ([]byte, []int)
func (*SessionStructure_PendingPreKey) GetBaseKey ¶
func (m *SessionStructure_PendingPreKey) GetBaseKey() []byte
func (*SessionStructure_PendingPreKey) GetPreKeyId ¶
func (m *SessionStructure_PendingPreKey) GetPreKeyId() uint32
func (*SessionStructure_PendingPreKey) GetSignedPreKeyId ¶
func (m *SessionStructure_PendingPreKey) GetSignedPreKeyId() int32
func (*SessionStructure_PendingPreKey) ProtoMessage ¶
func (*SessionStructure_PendingPreKey) ProtoMessage()
func (*SessionStructure_PendingPreKey) Reset ¶
func (m *SessionStructure_PendingPreKey) Reset()
func (*SessionStructure_PendingPreKey) String ¶
func (m *SessionStructure_PendingPreKey) String() string
func (*SessionStructure_PendingPreKey) XXX_DiscardUnknown ¶
func (m *SessionStructure_PendingPreKey) XXX_DiscardUnknown()
func (*SessionStructure_PendingPreKey) XXX_Marshal ¶
func (m *SessionStructure_PendingPreKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionStructure_PendingPreKey) XXX_Merge ¶
func (m *SessionStructure_PendingPreKey) XXX_Merge(src proto.Message)
func (*SessionStructure_PendingPreKey) XXX_Size ¶
func (m *SessionStructure_PendingPreKey) XXX_Size() int
func (*SessionStructure_PendingPreKey) XXX_Unmarshal ¶
func (m *SessionStructure_PendingPreKey) XXX_Unmarshal(b []byte) error
type SignalMessage ¶
type SignalMessage struct { RatchetKey []byte `protobuf:"bytes,1,opt,name=ratchetKey" json:"ratchetKey,omitempty"` Counter *uint32 `protobuf:"varint,2,opt,name=counter" json:"counter,omitempty"` PreviousCounter *uint32 `protobuf:"varint,3,opt,name=previousCounter" json:"previousCounter,omitempty"` Ciphertext []byte `protobuf:"bytes,4,opt,name=ciphertext" json:"ciphertext,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignalMessage) Descriptor ¶
func (*SignalMessage) Descriptor() ([]byte, []int)
func (*SignalMessage) GetCiphertext ¶
func (m *SignalMessage) GetCiphertext() []byte
func (*SignalMessage) GetCounter ¶
func (m *SignalMessage) GetCounter() uint32
func (*SignalMessage) GetPreviousCounter ¶
func (m *SignalMessage) GetPreviousCounter() uint32
func (*SignalMessage) GetRatchetKey ¶
func (m *SignalMessage) GetRatchetKey() []byte
func (*SignalMessage) ProtoMessage ¶
func (*SignalMessage) ProtoMessage()
func (*SignalMessage) Reset ¶
func (m *SignalMessage) Reset()
func (*SignalMessage) String ¶
func (m *SignalMessage) String() string
func (*SignalMessage) XXX_DiscardUnknown ¶
func (m *SignalMessage) XXX_DiscardUnknown()
func (*SignalMessage) XXX_Marshal ¶
func (m *SignalMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignalMessage) XXX_Merge ¶
func (m *SignalMessage) XXX_Merge(src proto.Message)
func (*SignalMessage) XXX_Size ¶
func (m *SignalMessage) XXX_Size() int
func (*SignalMessage) XXX_Unmarshal ¶
func (m *SignalMessage) XXX_Unmarshal(b []byte) error
type SignedPreKeyRecordStructure ¶
type SignedPreKeyRecordStructure struct { Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey" json:"publicKey,omitempty"` PrivateKey []byte `protobuf:"bytes,3,opt,name=privateKey" json:"privateKey,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature" json:"signature,omitempty"` Timestamp *uint64 `protobuf:"fixed64,5,opt,name=timestamp" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedPreKeyRecordStructure) Descriptor ¶
func (*SignedPreKeyRecordStructure) Descriptor() ([]byte, []int)
func (*SignedPreKeyRecordStructure) GetId ¶
func (m *SignedPreKeyRecordStructure) GetId() uint32
func (*SignedPreKeyRecordStructure) GetPrivateKey ¶
func (m *SignedPreKeyRecordStructure) GetPrivateKey() []byte
func (*SignedPreKeyRecordStructure) GetPublicKey ¶
func (m *SignedPreKeyRecordStructure) GetPublicKey() []byte
func (*SignedPreKeyRecordStructure) GetSignature ¶
func (m *SignedPreKeyRecordStructure) GetSignature() []byte
func (*SignedPreKeyRecordStructure) GetTimestamp ¶
func (m *SignedPreKeyRecordStructure) GetTimestamp() uint64
func (*SignedPreKeyRecordStructure) ProtoMessage ¶
func (*SignedPreKeyRecordStructure) ProtoMessage()
func (*SignedPreKeyRecordStructure) Reset ¶
func (m *SignedPreKeyRecordStructure) Reset()
func (*SignedPreKeyRecordStructure) String ¶
func (m *SignedPreKeyRecordStructure) String() string
func (*SignedPreKeyRecordStructure) XXX_DiscardUnknown ¶
func (m *SignedPreKeyRecordStructure) XXX_DiscardUnknown()
func (*SignedPreKeyRecordStructure) XXX_Marshal ¶
func (m *SignedPreKeyRecordStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedPreKeyRecordStructure) XXX_Merge ¶
func (m *SignedPreKeyRecordStructure) XXX_Merge(src proto.Message)
func (*SignedPreKeyRecordStructure) XXX_Size ¶
func (m *SignedPreKeyRecordStructure) XXX_Size() int
func (*SignedPreKeyRecordStructure) XXX_Unmarshal ¶
func (m *SignedPreKeyRecordStructure) XXX_Unmarshal(b []byte) error