Documentation ¶
Index ¶
- Constants
- func AllZero(xs []byte) bool
- func ComputeResponse(allBlocks []Block, mask []byte, secret []byte) []byte
- func Decrypt(g abstract.Group, c1 abstract.Point, c2 abstract.Point, sk abstract.Scalar) abstract.Point
- func Encrypt(g abstract.Group, msg []byte, pks []abstract.Point) ([]abstract.Point, []abstract.Point)
- func EncryptKey(g abstract.Group, msgPt abstract.Point, pks []abstract.Point) (abstract.Point, abstract.Point)
- func EncryptPoint(g abstract.Group, msgPt abstract.Point, pk abstract.Point) (abstract.Point, abstract.Point)
- func GeneratePI(size int) []int
- func MarshalPoint(pt abstract.Point) []byte
- func Membership(res []byte, set [][]byte) int
- func NewDesc(path string) (map[string]int64, error)
- func ParseServerList(path string) []string
- func ReverseMap(m map[int]int) map[int][]int
- func SetBit(n_int int, b bool, bs []byte)
- func SliceEquals(X, Y []byte) bool
- func TimeTrack(start time.Time, name string)
- func UnmarshalPoint(suite abstract.Suite, ptByte []byte) abstract.Point
- func Wait()
- func Xor(a, dst []byte)
- func XorWords(dst, a, b []byte)
- func Xors(as [][]byte) []byte
- func XorsDC(bsss [][][]byte) [][]byte
- type AuxKeyProof
- type Block
- type ClientBlock
- type ClientDH
- type ClientMask
- type ClientRegistration
- type File
- type InternalKey
- type InternalUpload
- type Request
- type RequestArg
- type UpKey
Constants ¶
View Source
const BlockSize = 1024 //1KB for testing; 1MB for production
View Source
const HashSize = 32
sizes in bytes
View Source
const MaxRounds = 10
View Source
const SecretSize = 256 / 8
const BlockSize = 160
View Source
const ServerPort = 8000
Variables ¶
This section is empty.
Functions ¶
func EncryptKey ¶
func EncryptPoint ¶
func GeneratePI ¶
func MarshalPoint ¶
func Membership ¶
func ParseServerList ¶
func SliceEquals ¶
Types ¶
type AuxKeyProof ¶
type ClientBlock ¶
type ClientMask ¶
type ClientRegistration ¶
type InternalKey ¶
type InternalUpload ¶
type RequestArg ¶
Click to show internal directories.
Click to hide internal directories.