Struct sgx_crypto::sm4::cbc::Sm4Cbc
source · pub struct Sm4Cbc { /* private fields */ }Implementations§
source§impl Sm4Cbc
impl Sm4Cbc
pub fn new(key: &Key128bit, iv: Nonce) -> Sm4Cbc
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 Sm4Cbc
impl PartialEq for Sm4Cbc
impl Copy for Sm4Cbc
impl Eq for Sm4Cbc
impl StructuralEq for Sm4Cbc
impl StructuralPartialEq for Sm4Cbc
Auto Trait Implementations§
impl RefUnwindSafe for Sm4Cbc
impl Send for Sm4Cbc
impl Sync for Sm4Cbc
impl Unpin for Sm4Cbc
impl UnwindSafe for Sm4Cbc
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