CbcEncryptor

Trait CbcEncryptor 

Source
pub trait CbcEncryptor<B> {
    // Required method
    fn to_cbc_enc(self, iv: &[u8]) -> impl BlockMode + 'static;
}
Expand description

Trait for ciphers that have optimized CBC encryption implementation

Required Methods§

Source

fn to_cbc_enc(self, iv: &[u8]) -> impl BlockMode + 'static

Creates a new CBC encryptor

§Panics

Panics if the IV length doesn’t match the block size

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§