From b57dafb66bee34525edd754f2516927899bfca95 Mon Sep 17 00:00:00 2001 From: Marcel Keller Date: Thu, 21 Mar 2024 12:20:28 +1100 Subject: [PATCH] Fix bug with larger ORAMs in binary circuits. --- Compiler/GC/types.py | 2 +- Programs/Source/gc_oram.mpc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Compiler/GC/types.py b/Compiler/GC/types.py index 84f65bb8..bf631037 100644 --- a/Compiler/GC/types.py +++ b/Compiler/GC/types.py @@ -1132,7 +1132,7 @@ class DynamicArray(Array): else: cbits.conv(value).store_in_dynamic_mem(address) -sbits.dynamic_array = DynamicArray +sbits.dynamic_array = Array cbits.dynamic_array = Array def _complement_two_extend(bits, k): diff --git a/Programs/Source/gc_oram.mpc b/Programs/Source/gc_oram.mpc index 5ddcb5a7..c297819e 100644 --- a/Programs/Source/gc_oram.mpc +++ b/Programs/Source/gc_oram.mpc @@ -5,6 +5,8 @@ prog.options.binary = -1 from Compiler.GC.types import * from Compiler.GC.instructions import * +sbits.dynamic_array = DynamicArray + bits.unit = 64 from Compiler.circuit_oram import *