Expand description
Traits for different pieces of ORAM, from the level of block storage up to an oblivious map. These are all defined in terms of fixed-length chunks of bytes and the A8Bytes object from the aligned-cmov crate.
There is also a naive implementation of the ORAM storage object for tests.
Re-exports§
Modules§
- testing
- Some generic tests that exercise objects implementing these traits
Structs§
- Generic
Array - Struct representing a generic array -
GenericArray<T, N>works like[T; N] - HeapORAM
Storage - The HeapORAMStorage is simply vector
- HeapORAM
Storage Creator - HeapORAMStorage simply allocates a vector, and requires no special initialization support
- Linear
ScanningORAM
Constants§
- OMAP_
FOUND - Status code for the case that an OMAP operation found and returned a value.
- OMAP_
INVALID_ KEY - Status code for the case that the OMAP algorithm rejected the key. The all zeroes key may be invalid for instance.
- OMAP_
NOT_ FOUND - Status code for the case that an OMAP operation did not find a value that was searched for.
- OMAP_
OVERFLOW - Status code for the case that an OMAP wanted to add a new value but could not because the hash table overflowed, and so the operation failed.
Traits§
- Array
Length ArrayLengthis a type-levelUnsignedinteger used to define the number of elements in aGenericArray.- CMov
- CMov represents types that can be (obliviously) conditionally moved.
- Crypto
Rng - A marker trait for securely unpredictable infallible RNGs
- OMap
Creator - A factory which makes ObliviousMap objects of some type, based on an ORAM
- ORAM
- An Oblivious RAM – that is, an array like [A8Bytes
; N] which supports access queries without memory access patterns revealing what indices were queried. (Here, N is a runtime parameter set at construction time.) - ORAM
Creator - A factory which creates an ORAM of arbitrary size using recursive strategy. The result is required to have the ’static lifetime, and not be tied to the factory.
- ORAM
Debug - Trait that helps to debug ORAM. This should only be used in tests.
- ORAM
Storage - Represents trusted block storage holding aligned blocks of memory of a certain size. This is a building block for ORAM.
- ORAM
Storage Creator - A factory which makes ORAMStorage objects of some type
- Oblivious
Hash Map - Trait for an oblivious hash map, where READING and ACCESSING EXISTING ENTRIES have a strong oblivious property.
- Position
Map - PositionMap trait conceptually is an array of TreeIndex. Each value in the map corresponds to a leaf in the complete binary tree, at some common height.
- Position
MapCreator - A factory which creates a PositionMap
Functions§
- cswap
- log2_
ceil - Utility function for logs base 2 rounded up, implemented as const fn
- rng_
maker - A helper which takes an Rng implementing SeedableRng and returns a lambda
which returns newly seeded Rng’s with seeds derived from this one.
This matches the
rng_makerconstraints in the above traits, and can be used in tests when we want all the Rng’s to be seeded.