encrypt_to

Function encrypt_to 

Source
pub fn encrypt_to(
    dst: &mut [u8],
    src: &[u8],
    _key: &[u8],
    _iv: &[u8],
    algo: EncryptionAlgorithm,
) -> Result<(), EncryptError>
Expand description

Encrypts src with IV to dst. Can be used for both encryption and decryption.

IV: - EncryptionAlgorithm::Aes: IV is of AES block size. - EncryptionAlgorithm::None: IV is ignored.