retrievable

package
v0.0.0-...-e34fb4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIdentityKeyPair

func CreateIdentityKeyPair() (pub []byte, priv []byte, err error)

func CreatePreKey

func CreatePreKey() ([]byte, error)

func CreateSignedPreKey

func CreateSignedPreKey(idkeypair identity.KeyPair) ([]byte, error)

func IDsToGOB

func IDsToGOB(id IDs) []byte

func InitGOB

func InitGOB()

func ReadIdentityKeyPair

func ReadIdentityKeyPair() identity.KeyPair

func ReadPreKey

func ReadPreKey() ([]byte, error)

func ReadSignedPreKey

func ReadSignedPreKey() ([]byte, error)

func Readfile

func Readfile(content *[]byte, path string) error

func Writefile

func Writefile(content []byte, path string) error

Types

type IDs

type IDs struct {
	RegID uint32
	DevID uint32
}

func CreateIDs

func CreateIDs() IDs

func IDsFromGOB

func IDsFromGOB(by []byte) IDs

func ReadIDs

func ReadIDs() IDs

type Retrievable

type Retrievable struct {
	Ids             IDs
	PreKey          record.PreKey
	SignedPreKey    record.SignedPreKey
	IdentityKeyPair identity.KeyPair
}

func ReadBundle

func ReadBundle() (Retrievable, error)

type RetrievableRaw

type RetrievableRaw struct {
	Ids                 IDs
	PreKey              []byte
	SignedPreKey        []byte
	IdentityKeyPairPub  []byte
	IdentityKeyPairPriv []byte
}

func CreateBundleRaw

func CreateBundleRaw() (RetrievableRaw, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL