decryptStringDetachedAfternm static method

String decryptStringDetachedAfternm(
  1. Uint8List cipher,
  2. Uint8List mac,
  3. Uint8List nonce,
  4. Uint8List k,
)

Verifies and decrypts a detached cipher text and tag.

Implementation

static String decryptStringDetachedAfternm(
    Uint8List cipher, Uint8List mac, Uint8List nonce, Uint8List k) {
  final m = decryptDetachedAfternm(cipher, mac, nonce, k);
  return utf8.decode(m);
}