[−][src]Struct rcrypto::cipher_mode::OFB
Implementations
impl<C, IV> OFB<C, IV> where
C: Cipher,
IV: InitialVec<C>,
[src]
C: Cipher,
IV: InitialVec<C>,
pub fn new(c: C, iv: IV) -> Result<Self, CryptoError>
[src]
pub fn update_iv(&mut self) -> Result<&Vec<u8>, CryptoError>
[src]
pub fn cur_iv(&self) -> Vec<u8>
[src]
pub fn set_iv(&mut self, iv: Vec<u8>) -> Result<(), CryptoError>
[src]
pub fn encrypt_stream(self) -> OFBEncrypt<C, IV>
[src]
pub fn decrypt_stream(self) -> OFBDecrypt<C, IV>
[src]
Trait Implementations
impl<C, IV> Cipher for OFB<C, IV> where
C: Cipher,
IV: InitialVec<C>,
[src]
C: Cipher,
IV: InitialVec<C>,
type Output = usize
fn block_size(&self) -> Option<usize>
[src]
fn encrypt(
&self,
dst: &mut Vec<u8>,
plaintext_block: &[u8]
) -> Result<usize, CryptoError>
[src]
&self,
dst: &mut Vec<u8>,
plaintext_block: &[u8]
) -> Result<usize, CryptoError>
fn decrypt(
&self,
dst: &mut Vec<u8>,
cipher_block: &[u8]
) -> Result<usize, CryptoError>
[src]
&self,
dst: &mut Vec<u8>,
cipher_block: &[u8]
) -> Result<usize, CryptoError>
impl<C, IV> Clone for OFB<C, IV> where
C: Cipher + Clone,
IV: InitialVec<C> + Clone,
[src]
C: Cipher + Clone,
IV: InitialVec<C> + Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<C, IV> !RefUnwindSafe for OFB<C, IV>
impl<C, IV> !Send for OFB<C, IV>
impl<C, IV> !Sync for OFB<C, IV>
impl<C, IV> Unpin for OFB<C, IV> where
C: Unpin,
IV: Unpin,
C: Unpin,
IV: Unpin,
impl<C, IV> UnwindSafe for OFB<C, IV> where
C: UnwindSafe,
IV: UnwindSafe,
C: UnwindSafe,
IV: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,