decryptBytes abstract method

Future<Uint8List> decryptBytes({
  1. required Uint8List cipherBytes,
  2. required String key,
  3. String? iv,
})

Decrypts cipherBytes (format: [16-byte IV][ciphertext]) and returns the original plaintext.

When iv is provided it is used as the IV and the first 16 bytes of cipherBytes are still skipped (they were written by encryptBytes).

Implementation

Future<Uint8List> decryptBytes({required Uint8List cipherBytes, required String key, String? iv});