entryMac function

Uint8List entryMac(
  1. Uint8List macKey,
  2. String path,
  3. List<int> nonce,
  4. List<int> cipher,
)

MAC for a single file. The path is included so entries can't be swapped.

Implementation

Uint8List entryMac(Uint8List macKey, String path, List<int> nonce, List<int> cipher) =>
    hmacSha256Parts(macKey, [utf8.encode(path), const [0], nonce, cipher]);