Fix prefix-correlation weakness in filenames encryption by switching to
AES-256-HCTR2. Enabling HCTR2 fixes a longstanding known weakness in
filenames encryption.
Also enable HCTR2 for adoptable storage. Pixel phones don't have an SD
card slot. So they can only have adoptable storage through the "Virtual
SD Card", which is for testing only.
Bug: 265046004
Test: Equivalent changes were tested on P21 since I don't have a P23.
Will be tested with storage-qa.
Change-Id: I0666eb07c4b93b1bab4da41e3b4f5019ac38c213
Without this flag, fscrypt will return error for any filesystem operation involving
the partitions mounted with the fileencryption=::inlinecrypt_optimized flag.
Bug: 241606997
Test: enable KDN, switch to :gen_fstab.foo-hw-encrypt
Signed-off-by: Kenny Root <kroot@google.com>
Change-Id: I9601fcdfa627df4e67f1586cd32ceef3c1f9ecac