myl7/fss 1.1.0
Function secret sharing (FSS) primitives including distributed point/comparison function (DPF/DCF)
Loading...
Searching...
No Matches
fss::prp::Aes128Feistel Class Reference

Small-domain AES-128 Feistel PRP for Cuckoo hashing. More...

Public Member Functions

__uint128_t Permu (int4 seed, __uint128_t x, __uint128_t domain)
 Small-domain PRP on [0, domain) using 4-round Feistel + cycle-walking.
 

Detailed Description

Small-domain AES-128 Feistel PRP for Cuckoo hashing.

This backend is host-only because it uses OpenSSL. It satisfies Permutable and is intended for VDMPF setup paths that need a permutation over a compact integer domain.

Member Function Documentation

◆ Permu()

__uint128_t fss::prp::Aes128Feistel::Permu ( int4  seed,
__uint128_t  x,
__uint128_t  domain 
)
inline

Small-domain PRP on [0, domain) using 4-round Feistel + cycle-walking.

Host-only.

Parameters
seed16-byte PRP key.
xInput in [0, domain).
domainDomain size. Must be >= 2.
Returns
Output in [0, domain).

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