decrypt static method
Implementation
static Future<Uint8List> decrypt({
required Uint8List sharedSecret,
required Uint8List iv,
required Uint8List cipher,
}) async {
assert(sharedSecret.isNotEmpty);
assert(iv.lengthInBytes == 12);
assert(cipher.isNotEmpty);
final sharedX = sharedSecret.sublist(0, 32);
final decryptedMessage256 = await aes256GcmDecrypt(
req: AesDecryptReq(
key: sharedX,
iv: iv,
cipherText: cipher,
),
);
return decryptedMessage256;
}