mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 14:08:09 -05:00
33 lines
578 B
Plaintext
33 lines
578 B
Plaintext
prog = program
|
|
|
|
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 *
|
|
from Compiler import circuit_oram
|
|
|
|
import oram
|
|
oram.n_threads = 1
|
|
oram.n_threads_for_tree = 1
|
|
|
|
# ORAM/array size
|
|
n = 1000000
|
|
|
|
# some parameters
|
|
oram.max_demux_bits = 0
|
|
circuit_oram.threshold = 128
|
|
|
|
# Circuit ORAM
|
|
oram_type = AtLeastOneRecursionPackedCircuitORAM
|
|
|
|
# linear scan (no ORAM)
|
|
#oram_type = LinearORAM
|
|
|
|
oram = test_oram(oram_type, n, value_type=sbits, iterations=3)
|