[roll] Roll fuchsia [fxfs][crypto] Fix fscrypt filename encryption for long names

Fixes compatibility with Linux/Android fscrypt filename encryption
(AES-256-CTS) for filenames that result in ciphertext longer than 255
bytes. The ciphertext must be truncated to 255 bytes.

Also fixes `tea_hash_filename` to correctly handle partial chunks by
removing manual padding and letting `str_hash` handle it, matching
kernel behavior.

Added `gen-filenames.sh` which generates test filenames from an Android
device.

Added tests for case-folded and non-casefolded cases.  There is a Linux
f2fs bug which means we don't match for 255 byte case folded names.

Original-Bug: 423758640
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1421754
Original-Revision: 1a85faa67036370f32d2c22d1000796671fd0075
GitOrigin-RevId: a0702acc3d4e09795266a576de55895ac2616f61
Change-Id: Ie01c313aeee7265e2cb5360e43d19d49efb7f137
1 file changed
tree: 32c60eae77c31aab4435cc1d99c4f4cdc5d57f6e
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.