pub fn ctr_xor<C: BlockCipher>(
cipher: &C,
iv: &[u8],
data: &mut [u8],
) -> Result<()>Expand description
Counter mode: a stream cipher built from a block cipher.
Encryption and decryption are the same operation. The counter is the full
128-bit big-endian value of iv, incremented per block, matching SP 800-38A
Appendix B and the counter convention used by AES-GCM.