Abstract
Secure Function Evaluation (SFE) has long faced a trade-off between ease of use and computational performance. ARM2GC addresses this by enabling developers to write privacy-preserving applications in standard C/C++ and compile them with off-the-shelf ARM compilers. By introducing the SkipGate algorithm, which dynamically prunes unnecessary cryptographic operations at the gate level, ARM2GC achieves a 156x performance boost over prior garbled processors. This framework makes software-based secure computation nearly as efficient as custom-designed hardware circuits.
Introduction
The gold standard for SFE is Yao’s Garbled Circuit (GC) protocol. However, its adoption is hindered by two primary gaps. First, the Usability Gap requires developers to use low-level Hardware Description Languages (HDLs) or specialized, often unreliable Domain-Specific Languages (DSLs). Second, the Performance Gap plagues "Garbled Processors"—general-purpose CPUs treated as circuits—because they traditionally garble the entire processor logic for every instruction, including public control logic.
ARM2GC bridges these gaps by treating a standard ARM processor as the underlying circuit and applying fine-grained optimizations to minimize the "cryptographic tax" paid during execution.
System Architecture and Methodology
The ARM2GC framework utilizes a standard software development pipeline. As shown in Figure 5, a function written in C/C++ is compiled using a standard ARM compiler into a binary. This binary is then executed on a garbled ARM circuit.
The choice of the ARM architecture is strategic. Unlike MIPS, ARM supports Conditional Execution, allowing compilers to replace secret-dependent branches with conditional instructions. This keeps the program flow predictable and public, preventing the Program Counter from becoming a secret variable—a major performance bottleneck in previous architectures.
The SkipGate Optimization
The core innovation of ARM2GC is the SkipGate algorithm. Unlike previous methods that pruned logic at the instruction level, SkipGate operates at the gate level during runtime. It classifies gates based on whether their inputs are public or secret. If a gate's output can be determined from public information (e.g., the current instruction being decoded), it is computed in plaintext, skipping the expensive garbling process.
Furthermore, SkipGate employs Recursive Fanout Reduction. As illustrated in Figure 4, when a gate's output does not affect the final result (fanout = 0), the algorithm recursively reduces the fanout of its input gates. If an input gate's fanout also drops to zero, it too can be skipped.
Evaluation and Results
ARM2GC was evaluated against a variety of benchmarks, including cryptographic primitives (AES-128, SHA3-256), linear algebra, and sorting algorithms.
The results demonstrate a 156x improvement in communication and garbling costs compared to MIPS-based garbled processors. In the case of AES-128, SkipGate reduced the number of garbled gates from 54 billion to just 6,400—an 8,535x reduction. Remarkably, ARM2GC's performance is competitive with TinyGarble, a hardware-based framework. For certain tasks like Hamming Distance, ARM2GC even outperformed HDL-based solutions by 77% due to superior algorithmic optimizations provided by the standard C compiler.
Conclusion and Future Work
ARM2GC proves that fine-grained, gate-level dynamic optimization can eliminate the overhead of general-purpose processors in secure computation. By leveraging standard toolchains, it provides a reliable and high-performance path for privacy-preserving software.
Future work includes addressing the overhead of secret loop terminations and integrating Oblivious RAM (ORAM) for large-scale memory access. Additionally, extending the framework from a semi-honest model to a malicious adversary model remains a key area for cryptographic advancement.
Summary updated