aesDecrypt method
Future<Uint8List>
aesDecrypt({
- required Uint8List ciphertext,
- required Uint8List key,
- required Uint8List nonce,
- 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;
}