aesDecrypt method

  1. @override
Future<Uint8List> aesDecrypt({
  1. required Uint8List ciphertext,
  2. required Uint8List key,
  3. required Uint8List nonce,
  4. required Uint8List mac,
})
override

Implementation

@override
Future<Uint8List> aesDecrypt(
    {required Uint8List ciphertext,
    required Uint8List key,
    required Uint8List nonce,
    required Uint8List mac}) async {
  final res = (await methodChannel.invokeMapMethod<String, dynamic>(
      'aesDecrypt',
      {'ciphertext': ciphertext, 'key': key, 'nonce': nonce, 'mac': mac}))!;
  return res['plaintext'] as Uint8List;
}