Lune

EUROCRYPT2023Top-tier venue

NanoGRAM: Garbled RAM with O~(log⁡N)\widetilde{O}(\log N) Overhead

Andrew Park, Wei-Kai Lin, Elaine Shi

Abstract

We propose a new garbled RAM construction called NanoGRAM, which achieves an amortized cost of O~(λ⋅(Wlog⁡N+log⁡3N))\widetilde{O}(\lambda \cdot (W \log N + \log^3 N)) bits per memory access, where λ\lambda is the security parameter, WW is the block size, and NN is the total number of blocks, and O~(⋅)\widetilde{O}(\cdot) hides polylog⁡log⁡poly\log\log factors. For sufficiently large blocks where W=Ω(log⁡2N)W = \Omega(\log^2 N), our scheme achieves O~(λ⋅Wlog⁡N)\widetilde{O}(\lambda \cdot W \log N) cost per memory access, where the dependence on NN is optimal (barring polylog⁡log⁡poly\log\log factors), in terms of the evaluator's runtime. Our asymptotical performance matches even the interactive state-of-the-art (modulo polylog⁡log⁡poly\log\log factors), that is, running Circuit ORAM atop garbled circuit, and yet we remove the logarithmic number of interactions necessary in this baseline. Furthermore, we achieve asymptotical improvement over the recent work of Heath et al. Our scheme adopts the same assumptions as the mainstream literature on practical garbled circuits, i.e., circular correlation-robust hashes or a random oracle. We evaluate the concrete performance of NanoGRAM and compare it with a couple of baselines that are asymptotically less efficient. We show that NanoGRAM starts to outperform the naive linear-scan garbled RAM at a memory size of N=29N = 2^9 and starts to outperform the recent construction of Heath et al. at N=213N = 2^{13}.

Finally, as a by product, we also show the existence of a garbled RAM scheme assuming only one-way functions, with an amortized cost of O~(λ2⋅(Wlog⁡N+log⁡3N))\widetilde{O}(\lambda^2 \cdot (W \log N + \log^3 N)) per memory access. Again, the dependence on NN is nearly optimal for blocks of size W=Ω(log⁡2N)W = \Omega(\log^2 N) bits.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. Oblivious RAM with Worst-Case Logarithmic OverheadGilad Asharov, Ilan Komargodski, Wei-Kai Lin, Elaine ShiCRYPTO 2021 · 12 citations
  2. PicoGRAM: Practical Garbled RAM from Decisional Diffie-HellmanTianyao Gu, Afonso Tinoco, Sri Harish G. Rajan, Elaine ShiCRYPTO 2025 · 1 citation
  3. Improved Garbled RAM via Garbled MergeCan Liu, Lenny Liu, Ning Luo, David HeathCCS 2026
  4. OptORAMa: Optimal Oblivious RAMGilad Asharov, Ilan Komargodski, Wei-Kai Lin, Kartik Nayak et al.EUROCRYPT 2020 · 92 citations
  5. MacORAMa: Optimal Oblivious RAM with IntegritySurya Mathialagan, Neekon VafaCRYPTO 2023 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines