decrypt static method

Future<Uint8List> decrypt(
  1. Uint8List bytes,
  2. Uint8List key
)

Decrypts LRTC-formatted bytes and returns the plaintext.

Throws DecryptionFailedException on a wrong key or tampered data.

Implementation

static Future<Uint8List> decrypt(Uint8List bytes, Uint8List key) {
  return decryptEnvelope(LrtcEnvelope.parse(bytes), key);
}