Documentation ¶
Index ¶
Constants ¶
View Source
const BITMAP_SIZE int = 2048 / 8
Variables ¶
This section is empty.
Functions ¶
func ContactBits ¶
func ContactBits(seed Seed, secret device.SharedSecret) ([]int, error)
func DecodeContactBitmap ¶
func DecodeContactBitmap(random *rand.Rand, contactsContainer device.ContactsContainer, seed Seed, bitmap ContactBitmap) ([]device.ContactID, error)
Types ¶
type ContactBitmap ¶
type ContactBitmap []byte
type ContactBitmapEncoding ¶
type ContactBitmapEncoding struct { Seed Seed Bitmap ContactBitmap ContactCount int }
func EncodeContactBitmap ¶
func EncodeContactBitmap(cryptoRandom io.Reader, prioritizedContactList []device.ContactID, contactsContainer device.ContactsContainer, attempts int) (*ContactBitmapEncoding, error)
Click to show internal directories.
Click to hide internal directories.