An Oblivious RAM (ORAM) simulator is a compiler that transforms an algorithm in such a way that the resulting algorithm preserves the input-output behavior of the original algorithm but the distribution of the memory access patterns of the transformed algorithm is independent of the memory access pattern of the original algorithm. The use of ORAMs is motivated by the fact that an adversary can obtain nontrivial information about the execution of a program and the data that the program is using just by observing the pattern in which the program accesses various memory locations during its execution. An adversary can get this information even if the data in memory is encrypted. This definition is suited for settings like protected programs running on unprotected shared memory or clients running programs on their systems by accessing previously stored data on a remote server. The concept was formulated by Oded Goldreich and Rafail Ostrovsky in 1996.
Definition A Turing machine (TM), a mathematical abstraction of a real computer (program), is said to be oblivious if, for any two inputs of the same length, the motions of the tape heads remain the same. Pippenger and Fischer proved that every TM with running time T(n) can be made oblivious and that the running time of the oblivious TM is O(T(n)logT(n)). A more realistic model of computation is the RAM model. In the RAM model of computation, there is a CPU that can execute the basic mathematical, logical, and control instructions. The CPU is also associated with a few registers and a physical random access memory, where it stores the operands of its instructions. The CPU also has instructions to read the contents of a memory cell and write a specific value to a memory cell. The definition of ORAMs captures a similar notion of obliviousness for memory accesses in the RAM model. Informally, an ORAM is an algorithm at the interface of a protected CPU and the physical RAM such that it acts like a RAM to the CPU by querying the physical RAM for the CPU while hiding information about the actual memory access pattern of the CPU from the physical RAM. In other words, the distribution of memory accesses of two programs that make the same number of memory accesses to the RAM is indistinguishable from each other. This description will still make sense if the CPU is replaced by a client with a small storage and the physical RAM is replaced with a remote server with a large storage capacity, where the data of the client resides. The following is a formal definition of ORAMs. Let Π denote a program requiring memory of size n when executing on an input x. Suppose that Π has instructions for basic mathematical and control operations in addition to two special instructions 𝗋𝖾𝖺𝖽(l) and 𝗐𝗋𝗂𝗍𝖾(l,v), where 𝗋𝖾𝖺𝖽(l) reads the value at location l and 𝗐𝗋𝗂𝗍𝖾(l,v) writes the value v to l. The sequence of memory cells accessed by a program Π during its execution is called its memory access pattern and is denoted by Π~(n,x). A polynomial-time algorithm C is an Oblivious RAM (ORAM) compiler with computational overhead c(⋅) and memory overhead m(⋅), if C given n∈N and a deterministic RAM program Π with memory-size n outputs a program Π0 with memory-size m(n)⋅n such that for any input x, the running-time of Π0(n,x) is bounded by c(n)⋅T where T is the running-time of Π(n,x), and there exists a negligible function μ such that the following properties hold:
Correctness: For any n∈ℕ and any string x∈{0,1}∗, with probability at least 1−μ(n), Π(n,x)=Π0(n,x). Obliviousness: For any two programs Π1,Π2, any n∈ℕ and any two inputs, x1,x2∈{0,1}∗ if |Π~1(n,x1)|=|Π~2(n,x2)|, then Π~1'(n,x1) is μ-close to Π~2'(n,x2) in statistical distance, where Π1'=C(n,Π1) and Π2'=C(n,Π2). Note that the above definition uses the notion of statistical security. One can also have a similar definition for the notion of computational security.
History of ORAMs ORAMs were introduced by Goldreich and Ostrovsky, where the key motivation was stated as providing software protection from an adversary who can observe a program's memory access pattern (but not the contents of the memory). The main result in this work is that there exists an ORAM compiler that uses O(n) server space and incurs a running time overhead of O(log3n) when making a program that uses n memory cells oblivious. There are several attributes that need to be considered when comparing various ORAM constructions. The most important parameters of an ORAM construction's performance are the client-side space overhead, server-side space overhead, and the time overhead required to make one memory access. Based on these attributes, the construction of Asharov et al., called "OptORAMa", is the first optimal ORAM construction. It achieves O(1) client storage, O(n) server storage, and O(logn) access overhead, matching the known lower bounds. Another important attribute of an ORAM construction is whether the access overhead is amortized or worst-case. Several earlier ORAM constructions have good amortized access overhead guarantees but have Ω(N) worst-case access overheads. Some ORAM constructions with polylogarithmic worst-case computational overheads are. The constructions of were in the random oracle model, where the client assumes access to an oracle that behaves like a random function and returns consistent answers for repeated queries. Access to the oracle could be replaced by a pseudorandom function whose seed is a secret key stored by the client, if one assumes the existence of one-way functions. The papers were aimed at removing this assumption completely. The authors of also achieve an access overhead of O(log3n) While most of the earlier works focus on proving security computationally, there are more recent works that use the stronger statistical notion of security. One of the only known lower bounds on the access overhead of ORAMs is due to Goldreich et al. They show a Ω(logn) lower bound for ORAM access overhead, where n is the data size. Another lower bound is by Larsen and Nielsen. There is also a conditional lower bound on the access overhead of ORAMs due to Boyle et al. that relates this quantity with that of the size of sorting networks.
ORAM constructions
… excerpt ends here. Continue reading the full article.

