[][src]Function ethsign_crypto::aes::decrypt_128_ctr

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

Decrypt a message (CTR 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.