[][src]Function yaca::simple_encrypt

pub fn simple_encrypt(
    algo: &EncryptAlgorithm,
    bcm: &BlockCipherMode,
    sym_key: &Key,
    iv: Option<&Key>,
    plaintext: &[u8]
) -> Result<Vec<u8>>

Encrypts data using a symmetric cipher