Abstract
This paper introduces Streaming Function Secret Sharing (SFSS), a new cryptographic primitive that allows for efficient, privacy-preserving computation over continuous data streams. By decoupling function setup from data availability, SFSS enables the reuse of function keys across millions of messages, reducing communication overhead by orders of magnitude compared to traditional Function Secret Sharing (FSS). We provide concrete constructions for point functions and predicates, demonstrating significant bandwidth savings in real-world network simulations.
1. Introduction
Function Secret Sharing (FSS) is a cornerstone of modern privacy-preserving analytics. It enables a user to split a function $f$ into shares $(k_0, k_1)$ such that two non-colluding servers can compute $f(x)$ on an input $x$ without learning $f$ or $x$. While powerful, FSS faces a significant "streaming" bottleneck. In scenarios like IoT monitoring or federated learning, data arrives as a continuous stream. Standard FSS requires generating and transmitting new keys for every message, leading to unsustainable communication costs as keys often range from kilobytes to megabytes.
2. The SFSS Primitive
The authors propose SFSS to address this bottleneck by introducing a three-part workflow: Setup, Enc, and Eval. Unlike standard FSS, SFSS separates the logic of the function from the data itself.
- Setup: The client generates a pair of reusable SFSS keys $(k_0, k_1)$ for a specific function and a secret encryption key ($k_e$).
- Enc (Streaming Encryption): For every new message $m_j$ in the stream, the client uses $k_e$ to produce a tiny, constant-size ciphertext $c_j$.
- Eval (Non-interactive Evaluation): Servers use their long-lived SFSS keys and the new ciphertext to non-interactively compute an additive share of the result $f(x) \cdot m_j$.
3. Technical Constructions
The paper details two primary "compilers" to realize SFSS for different function classes.
3.1 Streaming Distributed Point Function (SDPF)
The SDPF construction targets point functions (e.g., equality tests). It utilizes Pseudorandom Functions (PRFs) to mask messages. By leveraging the internal structure of Distributed Point Functions (DPFs) to derive masking keys, the overhead per message is kept negligible.
3.2 KH-PRF based SFSS
For complex "predicate" functions such as comparisons, the authors employ Key-Homomorphic PRFs (KH-PRFs). Specifically, they utilize a Learning-With-Rounding (LWR) based construction. This choice is motivated by the "special zero-key property" of LWR, which ensures that servers obtain a result of zero when a predicate is not met, maintaining privacy without additional communication.
4. Performance and Key Results
The proposed system was evaluated using synthetic benchmarks simulating LAN (0.2ms RTT, 10Gbps) and WAN (20ms RTT, 500Mbps) environments across varying domain sizes ($2^{16}$ to $2^{64}$).
- Bandwidth Efficiency: In a benchmark involving 100 data streams with 10,000 messages each, traditional DPF-based FSS required 569.34 MB of communication. In contrast, the SDPF-based solution required only 13.28 MB, representing a massive reduction in overhead.
- Low Latency: Streaming encryption (Enc) for point functions is highly efficient, taking approximately 0.1ms, which allows it to be integrated into high-frequency data pipelines without significant latency.
- Advanced Aggregation: SFSS naturally supports "window-based" aggregation (e.g., summing the last $N$ values) with $O(1)$ complexity relative to the window size, whereas traditional FSS scales linearly with the window size.
- Conditional Transciphering: A novel application where a storage server converts ciphertexts into additive shares only if specific conditions are met, acting as a privacy-preserving gatekeeper.
5. Security Insights
A critical contribution of this work is the identification and resolution of security flaws in previous attempts at streaming FSS, such as the "Vizard" system. The authors found that reusing masks across different users in Vizard allowed for trivial decryption of private messages. SFSS provides a modular and secure alternative that avoids these pitfalls.
6. Conclusion and Future Work
SFSS represents a significant step forward for privacy-preserving streaming analytics. By moving heavy communication to a one-time setup phase, it makes secure computation practical for high-frequency data.
Future work includes extending SFSS to the malicious security model, where servers or clients might attempt to corrupt results. Additionally, while point functions are extremely fast, the computational overhead for predicate functions using LWR-based KH-PRFs remains a challenge. The authors suggest that hardware acceleration could be a viable path to bridging this performance gap.
Summary updated