Trait oramfs::BaseORAM[][src]

pub trait BaseORAM: Send {
    fn read(&mut self, block_id: i64) -> Vec<u8>;
fn write(&mut self, block_id: i64, data: Bytes) -> usize;
fn size(&self) -> i64;
fn name(&self) -> String;
fn args(&self) -> &ORAMConfig; fn test_state(&mut self) -> bool { ... }
fn init(&mut self) { ... }
fn cleanup(&mut self) { ... }
fn post_op(&mut self) { ... }
fn node_filename(&self, i: i64) -> String { ... }
fn node_path(&self, i: i64) -> String { ... } }
Expand description

Base trait for an ORAM scheme

Required methods

Read block with id block_id and return the bytes read

Write bytes in data inside of block with id block_id. Return the number of bytes written.

Return the total size of the ORAM

Return the oram’s name

Return the CLI arguments

Provided methods

Initialize the ORAM

Cleanup the ORAM

Called after each read or write operation

Return the filename of the node with given number

Return the path to the node with given number

Implementors