Trait mc_oblivious_traits::OMapCreator [−][src]
pub trait OMapCreator<KeySize: ArrayLength<u8>, ValueSize: ArrayLength<u8>, R: RngCore + CryptoRng> { type Output: ObliviousHashMap<KeySize, ValueSize> + Send + Sync + 'static; fn create<M: 'static + FnMut() -> R>(
desired_capacity: u64,
stash_size: usize,
rng_maker: M
) -> Self::Output; }
A factory which makes ObliviousMap objects of some type, based on an ORAM
Associated Types
type Output: ObliviousHashMap<KeySize, ValueSize> + Send + Sync + 'static
[src]
The storage type produced
Required methods
fn create<M: 'static + FnMut() -> R>(
desired_capacity: u64,
stash_size: usize,
rng_maker: M
) -> Self::Output
[src]
desired_capacity: u64,
stash_size: usize,
rng_maker: M
) -> Self::Output
Create an oblivious map, with at least capacity specified. The stash size will be used by ORAMs underlying it.