[−][src]Struct crypto::blockmodes::CtrMode
CTR Mode
Methods
impl<A: BlockEncryptor> CtrMode<A>
[src]
pub fn new(algo: A, ctr: Vec<u8>) -> CtrMode<A>
[src]
Create a new CTR object
pub fn reset(&mut self, ctr: &[u8])
[src]
Trait Implementations
impl<A: BlockEncryptor> Encryptor for CtrMode<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: BlockEncryptor> Decryptor for CtrMode<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: BlockEncryptor> SynchronousStreamCipher for CtrMode<A>
[src]
Auto Trait Implementations
impl<A> Unpin for CtrMode<A> where
A: Unpin,
A: Unpin,
impl<A> Sync for CtrMode<A> where
A: Sync,
A: Sync,
impl<A> Send for CtrMode<A> where
A: Send,
A: Send,
impl<A> UnwindSafe for CtrMode<A> where
A: UnwindSafe,
A: UnwindSafe,
impl<A> RefUnwindSafe for CtrMode<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,