pub struct Operations { /* private fields */ }Implementations§
Source§impl Operations
impl Operations
pub fn new() -> Self
pub fn allocate( &mut self, algorithm: Algorithm, mode: Mode, max_key_size: u32, ) -> TeeResult<OperationHandle>
pub fn free(&mut self, operation: OperationHandle)
pub fn reset(&mut self, operation: OperationHandle)
pub fn set_key( &mut self, operation: OperationHandle, key: Rc<RefCell<dyn Object>>, ) -> TeeResult
pub fn clear_key(&mut self, operation: OperationHandle) -> TeeResult
pub fn update_digest(&mut self, operation: OperationHandle, chunk: &[u8])
pub fn update_and_finalize_digest_into( &mut self, operation: OperationHandle, last_chunk: &[u8], buf: &mut [u8], ) -> Result<(), ErrorWithSize>
pub fn extract_digest<'a>( &mut self, operation: OperationHandle, buf: &'a mut [u8], ) -> usize
pub fn init_cipher(&mut self, operation: OperationHandle, iv: &[u8])
pub fn update_cipher( &mut self, operation: OperationHandle, input: &[u8], output: &mut [u8], ) -> Result<(), ErrorWithSize>
pub fn update_cipher_in_place( &mut self, operation: OperationHandle, inout: &mut [u8], )
pub fn finalize_cipher( &mut self, operation: OperationHandle, input: &[u8], output: &mut [u8], ) -> Result<(), ErrorWithSize>
pub fn finalize_cipher_in_place( &mut self, operation: OperationHandle, inout: &mut [u8], )
pub fn init_mac(&mut self, operation: OperationHandle, iv: &[u8])
pub fn update_mac(&mut self, operation: OperationHandle, chunk: &[u8])
pub fn compute_final_mac( &mut self, operation: OperationHandle, message: &[u8], mac: &mut [u8], ) -> Result<(), ErrorWithSize>
pub fn compare_final_mac( &mut self, operation: OperationHandle, message: &[u8], mac: &[u8], ) -> TeeResult
pub fn asymmetric_decrypt( &mut self, operation: OperationHandle, params: &[Attribute], src: &[u8], dest: &mut [u8], ) -> Result<usize, ErrorWithSize>
pub fn asymmetric_sign_digest( &mut self, operation: OperationHandle, params: &[Attribute], digest: &[u8], signature: &mut [u8], ) -> Result<usize, ErrorWithSize>
Auto Trait Implementations§
impl Freeze for Operations
impl !RefUnwindSafe for Operations
impl !Send for Operations
impl !Sync for Operations
impl Unpin for Operations
impl UnsafeUnpin for Operations
impl !UnwindSafe for Operations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more