Documentation ¶
Index ¶
- Variables
- func CheckCertificate(certificate []byte) error
- func DeriveAccessKeyFrom(profileKey []byte) ([]byte, error)
- func GetAccessFor(recipents []contacts.Contact) (*[]UnidentifiedAccessPair, error)
- func GetOurCertificate() ([]byte, error)
- func GetTargetUnidentifiedAccessKey(contact contacts.Contact) ([]byte, error)
- type UnidentifiedAccess
- type UnidentifiedAccessPair
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetAccessFor ¶
func GetAccessFor(recipents []contacts.Contact) (*[]UnidentifiedAccessPair, error)
Types ¶
type UnidentifiedAccess ¶
type UnidentifiedAccess struct { UnidentifiedAccessKey []byte `json:"unidentifiedAccessKey"` UnidentifiedCertificate []byte `json:"unidentifiedCertificate"` }
func GetAccessForSync ¶
func GetAccessForSync(profileKey []byte, cert []byte) (*UnidentifiedAccess, error)
func (*UnidentifiedAccess) GetTargetUnidentifiedAccess ¶
func (u *UnidentifiedAccess) GetTargetUnidentifiedAccess(contact contacts.Contact) (*UnidentifiedAccessPair, error)
type UnidentifiedAccessPair ¶
type UnidentifiedAccessPair struct { TargetUnidentifiedAccess UnidentifiedAccess `json:"targetUnidentifiedAccess"` SelfUnidentifiedAccess UnidentifiedAccess `json:"selfUnidentifiedAccess"` }
func GetAccessForUUID ¶
func GetAccessForUUID(recipent contacts.Contact) (*UnidentifiedAccessPair, error)
func (*UnidentifiedAccessPair) GetTargetKey ¶
func (uap *UnidentifiedAccessPair) GetTargetKey() []byte
Click to show internal directories.
Click to hide internal directories.