Struct OtbnRsa

Source
pub struct OtbnRsa<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> OtbnRsa<'a>

Source

pub fn new( otbn: &'a VirtualMuxAccel<'a>, rsa: AppAddresses, internal_buffer: &'static mut [u8], ) -> Self

Trait Implementations§

Source§

impl<'a> Client<'a> for OtbnRsa<'a>

Source§

fn op_done(&'a self, result: Result<(), ErrorCode>, output: &'static mut [u8])

This callback is called when a operation is computed. On error or success output will contain a reference to the original data supplied to run().
Source§

impl<'a> RsaCryptoBase<'a> for OtbnRsa<'a>

Source§

fn set_client(&'a self, client: &'a dyn Client<'a>)

Set the Client client to be called on completion.
Source§

fn clear_data(&self)

Clear any confidential data.
Source§

fn mod_exponent( &self, message: &'static mut [u8], modulus: &'static [u8], exponent: &'static [u8], result: &'static mut [u8], ) -> Result<(), (ErrorCode, &'static mut [u8], &'static [u8], &'static [u8], &'static mut [u8])>

Calculate (message ^ exponent) % modulus and store it in the result buffer. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for OtbnRsa<'a>

§

impl<'a> !RefUnwindSafe for OtbnRsa<'a>

§

impl<'a> !Send for OtbnRsa<'a>

§

impl<'a> !Sync for OtbnRsa<'a>

§

impl<'a> Unpin for OtbnRsa<'a>

§

impl<'a> !UnwindSafe for OtbnRsa<'a>

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, 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.