decryptBuffer static method
Decrypts, in place, the (encrypted) fields of a REC buffer with field-encryption format 3 (key: 32 bytes; recordIndex: unique per buffer under the key). Throws ArgumentError, before any byte changes, for a bad key or a malformed buffer.
Implementation
static void decryptBuffer(Uint8List bytes, List<int> key, [int recordIndex = 0]) =>
_FlatbuffersEncryption.cryptBuffer(
bytes, key, recordIndex, _flatbuffersEncryptionProgram);