myl7/fss 2.0.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
Loading...
Searching...
No Matches
fss::OwnedParityTree< Scheme > Class Template Reference

Own a host parity-tree allocation and expose a borrowed, read-only view. More...

Public Member Functions

 OwnedParityTree (std::unique_ptr< bool[]> p)
 Take ownership of an already populated host parity tree.
Scheme::ParityTreeView View () const &
 Return a view borrowing this live owner's host allocation.
Scheme::ParityTreeView View () const &&=delete
 Reject a temporary owner whose borrowed view would immediately dangle.

Detailed Description

template<typename Scheme>
class fss::OwnedParityTree< Scheme >

Own a host parity-tree allocation and expose a borrowed, read-only view.

This move-only owner does not copy storage to a GPU. Views remain valid until the allocation is destroyed or replaced, including after ownership is moved.

Template Parameters
SchemeGrottoDcf specialization describing the tree.

Constructor & Destructor Documentation

◆ OwnedParityTree()

template<typename Scheme>
fss::OwnedParityTree< Scheme >::OwnedParityTree ( std::unique_ptr< bool[]> p)
inlineexplicit

Take ownership of an already populated host parity tree.

Parameters
pLevel-order tree with 2^(in_bits+1)-1 entries for Scheme.

The documentation for this class was generated from the following file: