[−][src]Struct ofb::Ofb
OFB self-synchronizing stream cipher instance.
Trait Implementations
impl<C: BlockCipher> NewStreamCipher for Ofb<C>
[src]
type KeySize = C::KeySize
Key size in bytes
type NonceSize = C::BlockSize
Nonce size in bytes
fn new(
key: &GenericArray<u8, C::KeySize>,
iv: &GenericArray<u8, <C as BlockCipher>::BlockSize>
) -> Self
[src]
key: &GenericArray<u8, C::KeySize>,
iv: &GenericArray<u8, <C as BlockCipher>::BlockSize>
) -> Self
fn new_var(key: &[u8], iv: &[u8]) -> Result<Self, InvalidKeyNonceLength>
[src]
impl<C: BlockCipher> SyncStreamCipher for Ofb<C>
[src]
fn try_apply_keystream(&mut self, data: &mut [u8]) -> Result<(), LoopError>
[src]
fn apply_keystream(&mut self, data: &mut [u8])
[src]
Apply keystream to the data. Read more
Auto Trait Implementations
impl<C> Send for Ofb<C> where
C: Send,
<C as BlockCipher>::BlockSize: ArrayLength<u8>,
C: Send,
<C as BlockCipher>::BlockSize: ArrayLength<u8>,
impl<C> Sync for Ofb<C> where
C: Sync,
<C as BlockCipher>::BlockSize: ArrayLength<u8>,
C: Sync,
<C as BlockCipher>::BlockSize: ArrayLength<u8>,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<C> StreamCipher for C where
C: SyncStreamCipher,
[src]
C: SyncStreamCipher,
impl<T> Same for T
type Output = T
Should always be Self