Skip to content

Commit

Permalink
Fix bug with larger ORAMs in binary circuits.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Mar 21, 2024
1 parent a4f08e6 commit b57dafb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/GC/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ def _store(self, value, address):
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):
Expand Down
2 changes: 2 additions & 0 deletions Programs/Source/gc_oram.mpc
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit b57dafb

Please sign in to comment.