Parameters
Signature
type ttype elt = Cstruct.tPlaintext element
type pset = Stdlib.Set.Make(Cstruct).tPlaintext set
type hset = Stdlib.Set.Make(Cstruct).tHashed set
val init : ?salt:Cstruct.t -> unit -> tinit ?salt ?set () initializes a NH PSI instance.
- parameter ?salt
Salt for hashing elements
val add : elt -> t -> tadd elem t adds elt to the set
val add_set : pset -> t -> tadd_set pset t adds pset of elements to the set
val remove : elt -> t -> tremove elem t removes elt from the set
val inter : t -> hset -> psetinter t hset computes the intersection of a private, plaintext set and a public, hashed set
val priv : t -> psetpriv t returns the set of private, plaintext set
val pub : t -> hsetpub t returns the set of public, hashed set