psi

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedPSIProtocol = errors.New("unsupported PSI protocol")

Functions

This section is empty.

Types

type Protocol

type Protocol byte

Protocol is the matching protocol enumeration

const (
	ProtocolUnsupported Protocol = iota
	ProtocolDHPSI
	ProtocolNPSI
	ProtocolBPSI
	ProtocolKKRTPSI
)

func (Protocol) String

func (p Protocol) String() string

type Receiver

type Receiver interface {
	Intersect(ctx context.Context, n int64, identifiers <-chan []byte) ([][]byte, error)
}

Receiver side of the PSI operation

func NewReceiver

func NewReceiver(protocol Protocol, rw io.ReadWriter) (Receiver, error)

type Sender

type Sender interface {
	Send(ctx context.Context, n int64, identifiers <-chan []byte) error
}

Sender is the sender side of the PSI operation

func NewSender

func NewSender(protocol Protocol, rw io.ReadWriter) (Sender, error)

Jump to

Keyboard shortcuts

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