[][src]Function parity_crypto::aes::decrypt_128_cbc

pub fn decrypt_128_cbc(
    k: &[u8],
    iv: &[u8],
    encrypted: &[u8],
    dest: &mut [u8]
) -> Result<usize, SymmError>

Decrypt a message (CBC mode).

Key (k) length and initialisation vector (iv) length have to be 16 bytes each. An error is returned if the input lengths are invalid.