dpfc

package
v0.0.0-...-5ae0b98 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HASH1BLOCKOUT uint = 4
View Source
var HASH2BLOCKOUT uint = 2

Functions

func DestroyDPFContext

func DestroyDPFContext(ctx PrfCtx)

Types

type DPFKey

type DPFKey struct {
	Bytes     []byte
	RangeSize uint
	Index     uint64
}

func NewDPFKey

func NewDPFKey(bytes []byte, rangeSize uint, index uint64) *DPFKey

type Dpf

type Dpf struct {
	PrfKey PrfKey
	// contains filtered or unexported fields
}

func ClientDPFInitialize

func ClientDPFInitialize() *Dpf

func ServerDPFInitialize

func ServerDPFInitialize(key PrfKey) *Dpf

func (*Dpf) BatchEval

func (dpf *Dpf) BatchEval(key *DPFKey, indices []uint64) []uint64

func (*Dpf) Free

func (dpf *Dpf) Free()

func (*Dpf) GenDPFKeys

func (dpf *Dpf) GenDPFKeys(specialIndex uint64, rangeSize uint) (*DPFKey, *DPFKey)

type Hash

type Hash *C.struct_Hash

type PrfCtx

func InitDPFContext

func InitDPFContext(prfKey []byte) PrfCtx

type PrfKey

type PrfKey [16]byte

Jump to

Keyboard shortcuts

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