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

Own packed host leaves and their block-parity tree. More...

Public Member Functions

 OwnedPackedParityTree (std::unique_ptr< int4[]> blocks, std::unique_ptr< bool[]> p)
 Take ownership of populated packed leaves and block-parity entries.
Scheme::ParityTreeView View () const &
 Return a view borrowing both allocations from this live owner.
Scheme::ParityTreeView View () const &&=delete
 Reject a temporary owner whose borrowed view would immediately dangle.

Detailed Description

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

Own packed host leaves and their block-parity tree.

This move-only owner does not transfer storage to a GPU. Views borrow both allocations and remain valid while those allocations remain alive.

Template Parameters
SchemeHalfTreeGrottoDcf specialization describing the tree.

Constructor & Destructor Documentation

◆ OwnedPackedParityTree()

template<typename Scheme>
fss::OwnedPackedParityTree< Scheme >::OwnedPackedParityTree ( std::unique_ptr< int4[]> blocks,
std::unique_ptr< bool[]> p )
inlineexplicit

Take ownership of populated packed leaves and block-parity entries.

Parameters
blocksArray of 2^Scheme::kDepth packed leaf blocks.
pLevel-order parity tree with 2^(Scheme::kDepth+1)-1 bool entries.

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