commit | ab1e84ad5f94bc9971fac5d5589245cbffc2a92a | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Tue Dec 11 12:40:51 2018 -0800 |
committer | Greg Kaiser <gkaiser@google.com> | Tue Dec 11 17:22:00 2018 -0800 |
tree | a49128758177699629a6afd010c5e4ff20f109c2 | |
parent | 8cb4c9ff785f361ad6cd70e434b2df13fd714acd [diff] |
cryptfs: Allow setting dm-crypt sector size We add the property ro.crypto.fde_sector_size to allow devices to pass the "sector_size:<size>" argument to dm-crypt in the kernel. We also pass "iv_large_sectors" when setting the sector size. Using 4096-byte sectors rather than the default of 512 improves dm-crypt performance, especially when the Adiantum encryption mode is used. Bug: 112010205 Test: Run on a device Change-Id: I144ec7088a0aad3430369dc7158370d7ff3ef5d2