Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DH ¶
type DH struct {
// contains filtered or unexported fields
}
A DH server for the single-server DL-based tag retrieval
type LWE ¶
type LWE struct {
// contains filtered or unexported fields
}
type LWE128 ¶
type LWE128 struct {
// contains filtered or unexported fields
}
type PIR ¶
type PIR struct {
// contains filtered or unexported fields
}
PIR is the server for the information theoretic classical PIR scheme working in GF(2). This scheme is used for point queries, both in the authenticated and unauthenticated setting. The former adds Merkle-tree based authentication information to the database entries, but this is trasparent from the server perspective and only changes the database creation.
func NewPIR ¶
NewPIR return a server for the information theoretic single-bit scheme, working both with the vector and the rebalanced representation of the database.
func (*PIR) AnswerBytes ¶
AnswerBytes computes the answer for the given query encoded in bytes
type PredicateAPIR ¶
type PredicateAPIR struct {
// contains filtered or unexported fields
}
PredicateAPIR represent the server for the FSS-based complex-queries authenticated PIR
func NewPredicateAPIR ¶
func NewPredicateAPIR(db *database.DB, serverNum byte, cores ...int) *PredicateAPIR
func (*PredicateAPIR) AnswerBytes ¶
func (s *PredicateAPIR) AnswerBytes(q []byte) ([]byte, error)
func (*PredicateAPIR) DBInfo ¶
func (s *PredicateAPIR) DBInfo() *database.Info
type PredicatePIR ¶
type PredicatePIR struct {
// contains filtered or unexported fields
}
PredicatePIR represent the server for the FSS-based complex-queries unauthenticated PIR
func NewPredicatePIR ¶
func NewPredicatePIR(db *database.DB, serverNum byte, cores ...int) *PredicatePIR
NewPredicatePIR initializes and returns a new server for FSS-based classical PIR
func (*PredicatePIR) Answer ¶
func (s *PredicatePIR) Answer(q *query.FSS) []uint32
Answer computes the answer for the given query
func (*PredicatePIR) AnswerBytes ¶
func (s *PredicatePIR) AnswerBytes(q []byte) ([]byte, error)
AnswerBytes computes the answer for the given query encoded in bytes
func (*PredicatePIR) DBInfo ¶
func (s *PredicatePIR) DBInfo() *database.Info
DBInfo returns database info