Paper 2025/930 Original: eprint.iacr.org/2025/930 ↗

SEEC: Memory Safety Meets Efficiency in Secure Two-Party Computation

Henri Dohmen
Robin Hundt
Nora Khayata
Thomas Schneider
Abstract

Secure Multi-Party Computation (MPC) allows multiple parties to perform privacy-preserving computation on their secret data. MPC protocols based on secret sharing have high throughput which makes them well-suited for batch processing, where multiple instances are evaluated in parallel. So far, practical implementations of secret sharing-based MPC protocols mainly focus on runtime and communication efficiency, so the memory overhead of protocol implementations is often overlooked. Established techniques to reduce the memory overhead for constant-round garbled circuit protocols cannot be directly applied to secret sharing-based protocols because they would increase the round complexity. Additionally, state-of-the-art implementations of secret sharing-based MPC protocols are implemented in C/C++ and may exhibit memory unsafety and memory leaks, which could lead to undefined behavior. In this paper, we present SEEC: SEEC Executes Enormous Circuits, a framework for secret sharing-based MPC with a novel approach to address memory efficiency and safety without compromising on runtime and communication efficiency. We realize SEEC in Rust, a language known for memory-safety at close-to-native speed. To reduce the memory footprint, we develop an in-memory representation for sub-circuits. Thus, we never inline sub-circuit calls during circuit evaluation, a common issue that blows up memory usage in MPC implementations. We compare SEEC with the state-of-the-art secret sharing-based MPC frameworks ABY (NDSS'15), MP-SPDZ (CCS'20), and MOTION (TOPS'22) w.r.t. runtime, memory, and communication efficiency. Our results show that our reliable and memory-safe implementation has competitive or even better performance.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
History
2025-05-22: last updated
2025-05-22: published
Short URL
https://ia.cr/2025/930
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2025/930,
      author = {Henri Dohmen and Robin Hundt and Nora Khayata and Thomas Schneider},
      title = {SEEC: Memory Safety Meets Efficiency in Secure Two-Party Computation},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/930},
      year = {2025},
      url = {https://eprint.iacr.org/2025/930}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.