pub fn encrypt(
_data: &mut [u8],
_key: &[u8],
_iv: &[u8],
algo: EncryptionAlgorithm,
) -> Result<(), EncryptError>Expand description
Encrypts data with IV. Can be used for both encryption and decryption.
IV:
- EncryptionAlgorithm::Aes: IV is of AES block size.
- EncryptionAlgorithm::None: IV is ignored.