Versions in this module Expand all Collapse all v0 v0.1.1 Feb 8, 2015 Changes in this version + const Default_Contact_IsPending + const Default_Header_NonceSmearCopies + const Default_Header_SCrypt_N + const Default_Header_SCrypt_P + const Default_Header_SCrypt_R + const Default_Inbox_Retained + var BadPasswordError = errors.New("bad password") + type Contact struct + CurrentPrivate []byte + Events []*Contact_Event + Generation *uint32 + GroupKey []byte + Id *uint64 + IsPending *bool + KeyExchangeBytes []byte + LastPrivate []byte + MyGroupKey []byte + Name *string + PandaError *string + PandaKeyExchange []byte + PreviousTags []*Contact_PreviousTag + Ratchet *RatchetState + RevokedUs *bool + SupportedVersion *int32 + TheirCurrentPublic []byte + TheirGroup []byte + TheirIdentityPublic []byte + TheirLastPublic []byte + TheirPub []byte + TheirServer *string + XXX_unrecognized []byte + func (*Contact) ProtoMessage() + func (this *Contact) GetCurrentPrivate() []byte + func (this *Contact) GetEvents() []*Contact_Event + func (this *Contact) GetGeneration() uint32 + func (this *Contact) GetGroupKey() []byte + func (this *Contact) GetId() uint64 + func (this *Contact) GetIsPending() bool + func (this *Contact) GetKeyExchangeBytes() []byte + func (this *Contact) GetLastPrivate() []byte + func (this *Contact) GetMyGroupKey() []byte + func (this *Contact) GetName() string + func (this *Contact) GetPandaError() string + func (this *Contact) GetPandaKeyExchange() []byte + func (this *Contact) GetPreviousTags() []*Contact_PreviousTag + func (this *Contact) GetRatchet() *RatchetState + func (this *Contact) GetRevokedUs() bool + func (this *Contact) GetSupportedVersion() int32 + func (this *Contact) GetTheirCurrentPublic() []byte + func (this *Contact) GetTheirGroup() []byte + func (this *Contact) GetTheirIdentityPublic() []byte + func (this *Contact) GetTheirLastPublic() []byte + func (this *Contact) GetTheirPub() []byte + func (this *Contact) GetTheirServer() string + func (this *Contact) Reset() + func (this *Contact) String() string + type Contact_Event struct + Message *string + Time *int64 + XXX_unrecognized []byte + func (*Contact_Event) ProtoMessage() + func (this *Contact_Event) GetMessage() string + func (this *Contact_Event) GetTime() int64 + func (this *Contact_Event) Reset() + func (this *Contact_Event) String() string + type Contact_PreviousTag struct + Expired *int64 + Tag []byte + XXX_unrecognized []byte + func (*Contact_PreviousTag) ProtoMessage() + func (this *Contact_PreviousTag) GetExpired() int64 + func (this *Contact_PreviousTag) GetTag() []byte + func (this *Contact_PreviousTag) Reset() + func (this *Contact_PreviousTag) String() string + type Draft struct + Attachments []*protos.Message_Attachment + Body *string + Created *int64 + Detachments []*protos.Message_Detachment + Id *uint64 + InReplyTo *uint64 + To *uint64 + XXX_unrecognized []byte + func (*Draft) ProtoMessage() + func (this *Draft) GetAttachments() []*protos.Message_Attachment + func (this *Draft) GetBody() string + func (this *Draft) GetCreated() int64 + func (this *Draft) GetDetachments() []*protos.Message_Detachment + func (this *Draft) GetId() uint64 + func (this *Draft) GetInReplyTo() uint64 + func (this *Draft) GetTo() uint64 + func (this *Draft) Reset() + func (this *Draft) String() string + type ErasureStorage interface + Create func(header *Header, key *[kdfKeyLen]byte) error + Destroy func(key *[kdfKeyLen]byte) error + Read func(key *[kdfKeyLen]byte) (*[erasureKeyLen]byte, error) + Write func(key *[kdfKeyLen]byte, value *[erasureKeyLen]byte) error + type Header struct + KdfSalt []byte + NoErasureStorage *bool + NonceSmearCopies *int32 + Scrypt *Header_SCrypt + TpmNvram *Header_TPM + XXX_unrecognized []byte + func (*Header) ProtoMessage() + func (this *Header) GetKdfSalt() []byte + func (this *Header) GetNoErasureStorage() bool + func (this *Header) GetNonceSmearCopies() int32 + func (this *Header) GetScrypt() *Header_SCrypt + func (this *Header) GetTpmNvram() *Header_TPM + func (this *Header) Reset() + func (this *Header) String() string + type Header_SCrypt struct + N *int32 + P *int32 + R *int32 + XXX_unrecognized []byte + func (*Header_SCrypt) ProtoMessage() + func (this *Header_SCrypt) GetN() int32 + func (this *Header_SCrypt) GetP() int32 + func (this *Header_SCrypt) GetR() int32 + func (this *Header_SCrypt) Reset() + func (this *Header_SCrypt) String() string + type Header_TPM struct + Index *uint32 + XXX_unrecognized []byte + func (*Header_TPM) ProtoMessage() + func (this *Header_TPM) GetIndex() uint32 + func (this *Header_TPM) Reset() + func (this *Header_TPM) String() string + type Inbox struct + Acked *bool + From *uint64 + Id *uint64 + Message []byte + Read *bool + ReceivedTime *int64 + Retained *bool + Sealed []byte + XXX_unrecognized []byte + func (*Inbox) ProtoMessage() + func (this *Inbox) GetAcked() bool + func (this *Inbox) GetFrom() uint64 + func (this *Inbox) GetId() uint64 + func (this *Inbox) GetMessage() []byte + func (this *Inbox) GetRead() bool + func (this *Inbox) GetReceivedTime() int64 + func (this *Inbox) GetRetained() bool + func (this *Inbox) GetSealed() []byte + func (this *Inbox) Reset() + func (this *Inbox) String() string + type Lock struct + func (l *Lock) Close() + type NewState struct + Destruct bool + RotateErasureStorage bool + State []byte + type Outbox struct + Acked *int64 + Created *int64 + Id *uint64 + Message []byte + Request []byte + Revocation *bool + Sent *int64 + Server *string + To *uint64 + XXX_unrecognized []byte + func (*Outbox) ProtoMessage() + func (this *Outbox) GetAcked() int64 + func (this *Outbox) GetCreated() int64 + func (this *Outbox) GetId() uint64 + func (this *Outbox) GetMessage() []byte + func (this *Outbox) GetRequest() []byte + func (this *Outbox) GetRevocation() bool + func (this *Outbox) GetSent() int64 + func (this *Outbox) GetServer() string + func (this *Outbox) GetTo() uint64 + func (this *Outbox) Reset() + func (this *Outbox) String() string + type RatchetState struct + NextRecvHeaderKey []byte + NextSendHeaderKey []byte + PrevSendCount *uint32 + Private0 []byte + Private1 []byte + Ratchet *bool + RecvChainKey []byte + RecvCount *uint32 + RecvHeaderKey []byte + RecvRatchetPublic []byte + RootKey []byte + SavedKeys []*RatchetState_SavedKeys + SendChainKey []byte + SendCount *uint32 + SendHeaderKey []byte + SendRatchetPrivate []byte + V2 *bool + XXX_unrecognized []byte + func (*RatchetState) ProtoMessage() + func (this *RatchetState) GetNextRecvHeaderKey() []byte + func (this *RatchetState) GetNextSendHeaderKey() []byte + func (this *RatchetState) GetPrevSendCount() uint32 + func (this *RatchetState) GetPrivate0() []byte + func (this *RatchetState) GetPrivate1() []byte + func (this *RatchetState) GetRatchet() bool + func (this *RatchetState) GetRecvChainKey() []byte + func (this *RatchetState) GetRecvCount() uint32 + func (this *RatchetState) GetRecvHeaderKey() []byte + func (this *RatchetState) GetRecvRatchetPublic() []byte + func (this *RatchetState) GetRootKey() []byte + func (this *RatchetState) GetSavedKeys() []*RatchetState_SavedKeys + func (this *RatchetState) GetSendChainKey() []byte + func (this *RatchetState) GetSendCount() uint32 + func (this *RatchetState) GetSendHeaderKey() []byte + func (this *RatchetState) GetSendRatchetPrivate() []byte + func (this *RatchetState) GetV2() bool + func (this *RatchetState) Reset() + func (this *RatchetState) String() string + type RatchetState_SavedKeys struct + HeaderKey []byte + MessageKeys []*RatchetState_SavedKeys_MessageKey + XXX_unrecognized []byte + func (*RatchetState_SavedKeys) ProtoMessage() + func (this *RatchetState_SavedKeys) GetHeaderKey() []byte + func (this *RatchetState_SavedKeys) GetMessageKeys() []*RatchetState_SavedKeys_MessageKey + func (this *RatchetState_SavedKeys) Reset() + func (this *RatchetState_SavedKeys) String() string + type RatchetState_SavedKeys_MessageKey struct + CreationTime *int64 + Key []byte + Num *uint32 + XXX_unrecognized []byte + func (*RatchetState_SavedKeys_MessageKey) ProtoMessage() + func (this *RatchetState_SavedKeys_MessageKey) GetCreationTime() int64 + func (this *RatchetState_SavedKeys_MessageKey) GetKey() []byte + func (this *RatchetState_SavedKeys_MessageKey) GetNum() uint32 + func (this *RatchetState_SavedKeys_MessageKey) Reset() + func (this *RatchetState_SavedKeys_MessageKey) String() string + type State struct + Contacts []*Contact + Drafts []*Draft + Generation *uint32 + Group []byte + GroupPrivate []byte + Identity []byte + Inbox []*Inbox + LastErasureStorageTime *int64 + Outbox []*Outbox + PreviousGroupPrivateKeys []*State_PreviousGroup + Private []byte + Public []byte + Server *string + XXX_unrecognized []byte + func (*State) ProtoMessage() + func (this *State) GetContacts() []*Contact + func (this *State) GetDrafts() []*Draft + func (this *State) GetGeneration() uint32 + func (this *State) GetGroup() []byte + func (this *State) GetGroupPrivate() []byte + func (this *State) GetIdentity() []byte + func (this *State) GetInbox() []*Inbox + func (this *State) GetLastErasureStorageTime() int64 + func (this *State) GetOutbox() []*Outbox + func (this *State) GetPreviousGroupPrivateKeys() []*State_PreviousGroup + func (this *State) GetPrivate() []byte + func (this *State) GetPublic() []byte + func (this *State) GetServer() string + func (this *State) Reset() + func (this *State) String() string + type StateFile struct + Erasure ErasureStorage + Log func(format string, args ...interface{}) + Path string + Rand io.Reader + func NewStateFile(rand io.Reader, path string) *StateFile + func (sf *StateFile) Create(pw string) error + func (sf *StateFile) Lock(create bool) (*Lock, error) + func (sf *StateFile) Read(pw string) (*State, error) + func (sf *StateFile) StartWriter(states chan NewState, done chan struct{}) + type State_PreviousGroup struct + Expired *int64 + Group []byte + GroupPrivate []byte + XXX_unrecognized []byte + func (*State_PreviousGroup) ProtoMessage() + func (this *State_PreviousGroup) GetExpired() int64 + func (this *State_PreviousGroup) GetGroup() []byte + func (this *State_PreviousGroup) GetGroupPrivate() []byte + func (this *State_PreviousGroup) Reset() + func (this *State_PreviousGroup) String() string + type TPM struct — linux/amd64 + Log func(format string, args ...interface{}) + Rand io.Reader + func (t *TPM) Create(header *Header, key *[kdfKeyLen]byte) error + func (t *TPM) Destroy(key *[kdfKeyLen]byte) error + func (t *TPM) Read(key *[kdfKeyLen]byte) (*[erasureKeyLen]byte, error) + func (t *TPM) Write(key *[kdfKeyLen]byte, value *[erasureKeyLen]byte) error