logo
pub struct Decryptor<C> where
    C: BlockDecryptMut + BlockCipher
{ /* private fields */ }
Expand description

CBC mode decryptor.

Trait Implementations

Write algorithm name into f.

Decrypt data using backend provided to the rank-2 closure.

Decrypt single inout block.

Decrypt inout blocks.

Decrypt single block in-place.

Decrypt in_block and write result to out_block.

Decrypt blocks in-place.

Decrypt blocks buffer-to-buffer. Read more

Decrypt input and unpad it. Returns resulting ciphertext slice. Read more

Decrypt input and unpad it in-place. Returns resulting ciphertext slice. Read more

Decrypt input and unpad it buffer-to-buffer. Returns resulting ciphertext slice. Read more

Decrypt input and unpad it in a newly allocated Vec. Returns resulting ciphertext Vec. Read more

Size of the block in bytes.

Return block size in bytes.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Initialize value using inner and iv array.

Initialize value using inner and iv slice.

Inner type.

Initialization vector size in bytes.

Return IV size in bytes.

Returns current IV state.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Create new value from fixed length key and nonce.

Create new value from variable length key and nonce.

Key size in bytes.

Return key size in bytes.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.