Struct simple_rijndael::impls::RijndaelCbc
source · [−]Fields
rijndael: Rijndael
padding: P
Implementations
sourceimpl<P> RijndaelCbc<P> where
P: Padding,
impl<P> RijndaelCbc<P> where
P: Padding,
pub fn new(key: &[u8], block_size: usize) -> Result<Self, Errors>
pub fn encrypt(&self, iv: &[u8], source: Vec<u8>) -> Result<Vec<u8>, Errors>
pub fn decrypt(&self, iv: &[u8], cipher: Vec<u8>) -> Result<Vec<u8>, Errors>
pub fn x_or_block(&self, b1: Vec<u8>, b2: &[u8]) -> Vec<u8>
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for RijndaelCbc<P> where
P: RefUnwindSafe,
impl<P> Send for RijndaelCbc<P> where
P: Send,
impl<P> Sync for RijndaelCbc<P> where
P: Sync,
impl<P> Unpin for RijndaelCbc<P> where
P: Unpin,
impl<P> UnwindSafe for RijndaelCbc<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more