EcbCs3Dec

Struct EcbCs3Dec 

Source
pub struct EcbCs3Dec<C: BlockDecrypt> { /* private fields */ }
Expand description

The ECB-CS-3 ciphertext stealing mode decryptor.

Trait Implementations§

Source§

impl<C: Clone + BlockDecrypt> Clone for EcbCs3Dec<C>

Source§

fn clone(&self) -> EcbCs3Dec<C>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<C: BlockDecrypt> Decrypt for EcbCs3Dec<C>

Source§

fn decrypt_inout(self, buf: InOutBuf<'_, '_, u8>) -> Result<(), Error>

Decrypt inout buffer.
Source§

fn decrypt(self, buf: &mut [u8]) -> Result<(), Error>

Decrypt data in-place.
Source§

fn decrypt_b2b(self, in_buf: &[u8], out_buf: &mut [u8]) -> Result<(), Error>

Decrypt data buffer-to-buffer.
Source§

impl<C: BlockDecrypt> InnerInit for EcbCs3Dec<C>

Source§

fn inner_init(cipher: Self::Inner) -> Self

Initialize value from the inner.
Source§

impl<C: BlockDecrypt> InnerUser for EcbCs3Dec<C>

Source§

type Inner = C

Inner type.
Source§

impl<C: BlockDecrypt> IvSizeUser for EcbCs3Dec<C>

Source§

type IvSize = <C as BlockSizeUser>::BlockSize

Initialization vector size in bytes.
Source§

fn iv_size() -> usize

Return IV size in bytes.

Auto Trait Implementations§

§

impl<C> Freeze for EcbCs3Dec<C>
where C: Freeze,

§

impl<C> RefUnwindSafe for EcbCs3Dec<C>
where C: RefUnwindSafe,

§

impl<C> Send for EcbCs3Dec<C>
where C: Send,

§

impl<C> Sync for EcbCs3Dec<C>
where C: Sync,

§

impl<C> Unpin for EcbCs3Dec<C>
where C: Unpin,

§

impl<C> UnwindSafe for EcbCs3Dec<C>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> KeyInit for T
where T: InnerInit, <T as InnerUser>::Inner: KeyInit,

Source§

fn new(key: &GenericArray<u8, <T as KeySizeUser>::KeySize>) -> T

Create new value from fixed size key.
Source§

fn new_from_slice(key: &[u8]) -> Result<T, InvalidLength>

Create new value from variable size key.
Source§

impl<T> KeySizeUser for T
where T: InnerUser, <T as InnerUser>::Inner: KeySizeUser,

Source§

type KeySize = <<T as InnerUser>::Inner as KeySizeUser>::KeySize

Key size in bytes.
Source§

fn key_size() -> usize

Return key size in bytes.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.