pub struct Cipher {
pub key: Vec<u8>,
pub key_len: usize,
pub iv: Vec<u8>,
pub iv_len: usize,
pub enc: Option<Box<dyn SymmetricCipher + Send + 'static>>,
pub dec: Option<Box<dyn SymmetricCipher + Send + 'static>>,
/* private fields */
}Fields§
§key: Vec<u8>§key_len: usize§iv: Vec<u8>§iv_len: usize§enc: Option<Box<dyn SymmetricCipher + Send + 'static>>§dec: Option<Box<dyn SymmetricCipher + Send + 'static>>Implementations§
Auto Trait Implementations§
impl Freeze for Cipher
impl !RefUnwindSafe for Cipher
impl Send for Cipher
impl !Sync for Cipher
impl Unpin for Cipher
impl !UnwindSafe for Cipher
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
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
Source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.