Skip to main content

CuckooHashTableCreator

Struct CuckooHashTableCreator 

Source
pub struct CuckooHashTableCreator<BlockSize, RngType, OC>
where BlockSize: ArrayLength<u8>, RngType: RngCore + CryptoRng + Send + Sync + 'static, OC: ORAMCreator<BlockSize, RngType>, OC::Output: ORAM<BlockSize> + Send + Sync + 'static,
{ /* private fields */ }
Expand description

Factory implementing OMapCreator for this type, based on any ORAM Creator. Otherwise it is very difficult to invoke CuckooHashTable::new() generically

Trait Implementations§

Source§

impl<KeySize, ValueSize, BlockSize, RngType, OC> OMapCreator<KeySize, ValueSize, RngType> for CuckooHashTableCreator<BlockSize, RngType, OC>
where KeySize: ArrayLength<u8> + Add<ValueSize> + PartialDiv<U8> + 'static, ValueSize: ArrayLength<u8> + PartialDiv<U8> + 'static, BlockSize: ArrayLength<u8> + PartialDiv<U8> + 'static, RngType: RngCore + CryptoRng + Send + Sync + 'static, OC: ORAMCreator<BlockSize, RngType>, OC::Output: ORAM<BlockSize> + Send + Sync + 'static, Sum<KeySize, ValueSize>: ArrayLength<u8> + Sub<KeySize, Output = ValueSize> + PartialDiv<U8>,

Source§

type Output = CuckooHashTable<KeySize, ValueSize, BlockSize, RngType, <OC as ORAMCreator<BlockSize, RngType>>::Output>

The storage type produced
Source§

fn create<M: 'static + FnMut() -> RngType>( size: 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.

Auto Trait Implementations§

§

impl<BlockSize, RngType, OC> Freeze for CuckooHashTableCreator<BlockSize, RngType, OC>

§

impl<BlockSize, RngType, OC> RefUnwindSafe for CuckooHashTableCreator<BlockSize, RngType, OC>

§

impl<BlockSize, RngType, OC> Send for CuckooHashTableCreator<BlockSize, RngType, OC>

§

impl<BlockSize, RngType, OC> Sync for CuckooHashTableCreator<BlockSize, RngType, OC>

§

impl<BlockSize, RngType, OC> Unpin for CuckooHashTableCreator<BlockSize, RngType, OC>

§

impl<BlockSize, RngType, OC> UnsafeUnpin for CuckooHashTableCreator<BlockSize, RngType, OC>

§

impl<BlockSize, RngType, OC> UnwindSafe for CuckooHashTableCreator<BlockSize, RngType, OC>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.