pub trait ORAMCreator<ValueSize: ArrayLength<u8>, RngType: RngCore + CryptoRng> {
    type Output: ORAM<ValueSize> + Send + Sync + 'static;

    // Required method
    fn create<M: 'static + FnMut() -> RngType>(
        size: u64,
        stash_size: usize,
        rng_maker: &mut M
    ) -> Self::Output;
}
Expand description

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.

Required Associated Types§

source

type Output: ORAM<ValueSize> + Send + Sync + 'static

Required Methods§

source

fn create<M: 'static + FnMut() -> RngType>( size: u64, stash_size: usize, rng_maker: &mut M ) -> Self::Output

Implementors§