MAGE: Nearly Zero-Cost Virtual Memory for Secure Computation

Sam Kumar, David E. Culler, Raluca Ada Popa
6/23/2021
cs.OScs.CR

Official code: ucbrise/mage (28 stars, C++, GPL-3.0, last commit 2024-07-29).

Abstract

Secure Computation (SC) is a family of cryptographic primitives for computing on encrypted data in single-party and multi-party settings. SC is being increasingly adopted by industry for a variety of applications.

Show full abstract

A significant obstacle to using SC for practical applications is the memory overhead of the underlying cryptography. We develop MAGE, an execution engine for SC that efficiently runs SC computations that do not fit in memory. We observe that, due to their intended security guarantees, SC schemes are inherently oblivious -- their memory access patterns are independent of the input data. Using this property, MAGE calculates the memory access pattern ahead of time and uses it to produce a memory management plan. This formulation of memory management, which we call memory programming, is a generalization of paging that allows MAGE to provide a highly efficient virtual memory abstraction for SC. MAGE outperforms the OS virtual memory system by up to an order of magnitude, and in many cases, runs SC computations that do not fit in memory at nearly the same speed as if the underlying machines had unbounded physical memory to fit the entire computation.

View on arXivView PDF

Code Implementations(1)

ucbrise/mageOfficial100%
GPL-3.0

MAGE: Memory-Aware Garbling Engine

285C++, ShellMar 25, 20202 years agoGPL-3.0

Similar Papers

Cite this paper

@article{kumar2021mage,
  title  = {MAGE: Nearly Zero-Cost Virtual Memory for Secure Computation},
  author = {Sam Kumar and David E. Culler and Raluca Ada Popa},
  year   = {2021},
  eprint = {2106.14651},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.14651}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.14651.svg)](https://codeofpaper.com/paper/2106.14651)

Discussion