aesGcmEncrypt method

Future<Uint8List> aesGcmEncrypt(
  1. Uint8List key,
  2. Uint8List plaintext, {
  3. Uint8List? aad,
})

AES-256-GCM: nonce(12) | ciphertext | tag(16), nonce from the module.

Implementation

Future<Uint8List> aesGcmEncrypt(
  Uint8List key,
  Uint8List plaintext, {
  Uint8List? aad,
}) => _backend.aesGcmEncrypt(key, plaintext, aad);