decryptDetached static method

Uint8List decryptDetached(
  1. Uint8List cipher,
  2. Uint8List mac,
  3. Uint8List nonce,
  4. Uint8List key, {
  5. Uint8List? additionalData,
})

Verifies and decrypts a cipher text and mac produced by encrypt detached.

Implementation

static Uint8List decryptDetached(
        Uint8List cipher, Uint8List mac, Uint8List nonce, Uint8List key,
        {Uint8List? additionalData}) =>
    Sodium.cryptoAeadChacha20poly1305DecryptDetached(
        null, cipher, mac, additionalData, nonce, key);