Function parity_crypto::aes::decrypt_128_ctr
source · [−]pub fn decrypt_128_ctr(
k: &[u8],
iv: &[u8],
encrypted: &[u8],
dest: &mut [u8]
) -> Result<(), SymmError>
Expand description
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.
If possible prefer inplace_decrypt_128_ctr
instead.