[−][src]Function yaca::simple_decrypt
pub fn simple_decrypt(
algo: &EncryptAlgorithm,
bcm: &BlockCipherMode,
sym_key: &Key,
iv: Option<&Key>,
ciphertext: &[u8]
) -> Result<Vec<u8>>
Decrypts data using a symmetric cipher
- Parameters passed must match encryption parameters used in the
encryption. See
Yaca::simple_encrypt()
. ciphertext
is the encrypted data to be decrypted.- The function returns the decrypted data.
- It doesn't support
BlockCipherMode::Gcm
andBlockCipherMode::Ccm
.