Struct sgx_crypto::sm4::ctr::Sm4Ctr
source · pub struct Sm4Ctr { /* private fields */ }Implementations§
source§impl 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§
source§impl PartialEq for Sm4Ctr
impl PartialEq for Sm4Ctr
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§
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