Function tetsy_crypto::aes::inplace_decrypt_128_ctr[][src]

pub fn inplace_decrypt_128_ctr(
    k: &[u8],
    iv: &[u8],
    data: &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.