pub struct Sm4Ctr { /* private fields */ }
Implementations
sourceimpl Sm4Ctr
impl Sm4Ctr
pub fn new(key: &Key128bit, ctr: Counter) -> Sm4Ctr
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 Sm4Ctr
impl Eq for Sm4Ctr
impl StructuralEq for Sm4Ctr
impl StructuralPartialEq for Sm4Ctr
Auto Trait Implementations
impl RefUnwindSafe for Sm4Ctr
impl Send for Sm4Ctr
impl Sync for Sm4Ctr
impl Unpin for Sm4Ctr
impl UnwindSafe for Sm4Ctr
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