pub struct ORAMU32PositionMap<ValueSize: ArrayLength<u8> + PartialDiv<U8>, O: ORAM<ValueSize> + Send + Sync + 'static, R: RngCore + CryptoRng + Send + Sync + 'static> { /* private fields */ }
Expand description
A position map implemented on top of an ORAM
Positions are represented as 32 bytes inside a page in an ORAM.
Value size represents the chunk of 32 byte values that we scan across.
Create position map where all positions appear random, lazily
The number of keys in the map. The valid keys are in the range 0..len.
Write a new value to a particular key.
The new value should be a random nonce from a CSPRNG.
Returns the old value.
It is illegal to write to a key that is out of bounds.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.