[−][src]Struct crypto::blockmodes::CtrModeX8
CTR Mode that operates on 8 blocks at a time
Methods
impl<A: BlockEncryptorX8> CtrModeX8<A>
[src]
pub fn new(algo: A, ctr: &[u8]) -> CtrModeX8<A>
[src]
Create a new CTR object that operates on 8 blocks at a time
pub fn reset(&mut self, ctr: &[u8])
[src]
Trait Implementations
impl<A: BlockEncryptorX8> Encryptor for CtrModeX8<A>
[src]
fn encrypt(
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>
[src]
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>
impl<A: BlockEncryptorX8> Decryptor for CtrModeX8<A>
[src]
fn decrypt(
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>
[src]
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>
impl<A: BlockEncryptorX8> SynchronousStreamCipher for CtrModeX8<A>
[src]
Auto Trait Implementations
impl<A> Unpin for CtrModeX8<A> where
A: Unpin,
A: Unpin,
impl<A> Sync for CtrModeX8<A> where
A: Sync,
A: Sync,
impl<A> Send for CtrModeX8<A> where
A: Send,
A: Send,
impl<A> UnwindSafe for CtrModeX8<A> where
A: UnwindSafe,
A: UnwindSafe,
impl<A> RefUnwindSafe for CtrModeX8<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,