Skip to main content

decrypt_aes_256_cbc

Function decrypt_aes_256_cbc 

Source
pub fn decrypt_aes_256_cbc(
    key: &[u8; 32],
    iv: &[u8; 16],
    ciphertext: &[u8],
) -> Result<Vec<u8>, CryptoError>
Expand description

Decrypt data using CBC-AES-256

§Arguments

  • key - 32-byte encryption key
  • iv - 16-byte initialization vector
  • ciphertext - Encrypted data to decrypt

§Returns

Decrypted data with padding removed