Struct simple_rijndael::rijndael::Rijndael
source · [−]pub struct Rijndael { /* private fields */ }
Implementations
sourceimpl Rijndael
impl Rijndael
pub fn block_size(&self) -> usize
pub fn rounds(&self) -> usize
pub fn b_c(&self) -> usize
pub fn s_c(&self) -> usize
pub fn k_e(&self) -> RoundKeys
pub fn k_d(&self) -> RoundKeys
pub fn new(key: &[u8], block_size: usize) -> Result<Self, Errors>
pub fn encrypt(&self, source: &[u8]) -> Result<Vec<u8>, Errors>
pub fn decrypt(&self, block_cipher: &[u8]) -> Result<Vec<u8>, Errors>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rijndael
impl Send for Rijndael
impl Sync for Rijndael
impl Unpin for Rijndael
impl UnwindSafe for Rijndael
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