decrypt method
Implementation
@override
List<int> decrypt(EncryptedData encryptedData) {
if (encryptedData.data.isEmpty) {
throw CryptoException('decryption error: empty content');
}
var encrypter = crypto.Encrypter(
crypto.AES(_getKey(), mode: crypto.AESMode.cbc),
);
return encrypter.decryptBytes(
crypto.Encrypted(Uint8List.fromList(encryptedData.data.toList())),
iv: crypto.IV(Uint8List.fromList(encryptedData.metadata.toList())));
}