Skip to main content

cbc_encrypt

Function cbc_encrypt 

Source
pub fn cbc_encrypt<C: BlockCipher>(cipher: &C, iv: &[u8], data: &mut [u8])
Expand description

Encrypt data in CBC mode.

ยงPanics

Panics if data.len() is not a multiple of the block size, or if iv.len() does not match the block size.