pub struct AesCtr { /* private fields */ }
Implementations
sourceimpl AesCtr
impl AesCtr
pub fn new(key: &Key128bit, ctr: Counter) -> AesCtr
pub fn encrypt(&mut self, src: &[u8], dst: &mut [u8]) -> SgxResult
pub fn encrypt_in_place(&mut self, in_out: &mut [u8]) -> SgxResult
pub fn decrypt(&mut self, src: &[u8], dst: &mut [u8]) -> SgxResult
pub fn decrypt_in_place(&mut self, in_out: &mut [u8]) -> SgxResult
Trait Implementations
impl Copy for AesCtr
impl Eq for AesCtr
impl StructuralEq for AesCtr
impl StructuralPartialEq for AesCtr
Auto Trait Implementations
impl RefUnwindSafe for AesCtr
impl Send for AesCtr
impl Sync for AesCtr
impl Unpin for AesCtr
impl UnwindSafe for AesCtr
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more