pub(crate) type AES128CTREncryptionOracleDriver = EncryptionOracleDriver<'static, AesECB<'static>>;
Aliased Type§
struct AES128CTREncryptionOracleDriver { /* private fields */ }
Implementations
Source§impl<'a, A> EncryptionOracleDriver<'a, A>
impl<'a, A> EncryptionOracleDriver<'a, A>
Sourcepub fn new(
aes: &'a A,
source_buffer: &'static mut [u8],
dest_buffer: &'static mut [u8],
process_grants: Grant<ProcessState, UpcallCount<capsules_extra::::tutorials::encryption_oracle_chkpt5::{impl#0}::new::{constant#0}>, AllowRoCount<capsules_extra::::tutorials::encryption_oracle_chkpt5::{impl#0}::new::{constant#1}>, AllowRwCount<capsules_extra::::tutorials::encryption_oracle_chkpt5::{impl#0}::new::{constant#2}>>,
) -> EncryptionOracleDriver<'a, A>
pub fn new( aes: &'a A, source_buffer: &'static mut [u8], dest_buffer: &'static mut [u8], process_grants: Grant<ProcessState, UpcallCount<capsules_extra::::tutorials::encryption_oracle_chkpt5::{impl#0}::new::{constant#0}>, AllowRoCount<capsules_extra::::tutorials::encryption_oracle_chkpt5::{impl#0}::new::{constant#1}>, AllowRwCount<capsules_extra::::tutorials::encryption_oracle_chkpt5::{impl#0}::new::{constant#2}>>, ) -> EncryptionOracleDriver<'a, A>
Create a new instance of our encryption oracle userspace driver:
Trait Implementations
Source§impl<'a, A> Client<'a> for EncryptionOracleDriver<'a, A>
impl<'a, A> Client<'a> for EncryptionOracleDriver<'a, A>
Source§impl<'a, A> SyscallDriver for EncryptionOracleDriver<'a, A>
impl<'a, A> SyscallDriver for EncryptionOracleDriver<'a, A>
Source§fn command(
&self,
command_num: usize,
_data1: usize,
_data2: usize,
processid: ProcessId,
) -> CommandReturn
fn command( &self, command_num: usize, _data1: usize, _data2: usize, processid: ProcessId, ) -> CommandReturn
System call for a process to perform a short synchronous operation or
start a long-running split-phase operation (whose completion is signaled
with an upcall). Command 0 is a reserved command to detect if a
peripheral system call driver is installed and must always return a
CommandReturn::success
.Source§fn allocate_grant(&self, processid: ProcessId) -> Result<(), Error>
fn allocate_grant(&self, processid: ProcessId) -> Result<(), Error>
Request to allocate a capsule’s grant for a specific process. Read more
Source§fn allow_userspace_readable(
&self,
app: ProcessId,
which: usize,
slice: ReadWriteProcessBuffer,
) -> Result<ReadWriteProcessBuffer, (ReadWriteProcessBuffer, ErrorCode)>
fn allow_userspace_readable( &self, app: ProcessId, which: usize, slice: ReadWriteProcessBuffer, ) -> Result<ReadWriteProcessBuffer, (ReadWriteProcessBuffer, ErrorCode)>
System call for a process to pass a buffer (a
UserspaceReadableProcessBuffer
) to the kernel that the kernel can
either read or write. The kernel calls this method only after it checks
that the entire buffer is within memory the process can both read and
write. Read more