aesCbcDecrypt static method

List<int> aesCbcDecrypt(
  1. List<int> key,
  2. List<int> data, {
  3. PaddingAlgorithm? paddingAlgorithm,
})

Decrypt the input data using AES in Cipher Block Chaining (CBC) mode with the provided key. Optionally, specify the padding algorithm to be used.

Implementation

static List<int> aesCbcDecrypt(List<int> key, List<int> data,
    {PaddingAlgorithm? paddingAlgorithm}) {
  final ecb = ECB(key);
  return ecb.decryptBlock(data, null, paddingAlgorithm);
}