commit | c114b62765200a61af629361944aa02a0bfe2e7b | [log] [tgz] |
---|---|---|
author | Neeraj Soni <neersoni@codeaurora.org> | Fri Dec 14 15:18:15 2018 +0530 |
committer | micky387 <mickaelsaibi@free.fr> | Sat Sep 14 09:38:34 2024 -0400 |
tree | abe616b3492d3b275e42ff60b33997e4e38c425b | |
parent | 3f4bf67bef261494e3e714fdcb4244402460c442 [diff] [blame] |
system: vold: Use wrapped key for metadata encryption Wrapped key feature is needed for better security of encryption keys and to ensure data integrity when crypto key cache is cleared during reset operation of storage/crypto hardware. Original patch: https://source.codeaurora.org/quic/la/platform/system/vold/commit/?h=LA.QSSI.11.0.r1-05600-qssi.0&id=c480f913e6abc2757c0d79afba5a3df1c4adc731 [Pig]: Clean up all deprecated codes that were removed during latter merge. CRs-Fixed: 2367150 Change-Id: I83d14861bf81e102151fa3417d84008c214a9ac0
diff --git a/FsCrypt.cpp b/FsCrypt.cpp index 3eb4599..2be685f 100644 --- a/FsCrypt.cpp +++ b/FsCrypt.cpp
@@ -322,6 +322,10 @@ return true; } +bool is_metadata_wrapped_key_supported() { + return GetEntryForMountPoint(&fstab_default, METADATA_MNT_POINT)->fs_mgr_flags.wrapped_key; +} + // Prepare a directory without assigning it an encryption policy. The directory // will inherit the encryption policy of its parent directory, or will be // unencrypted if the parent directory is unencrypted.