summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceTable.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2024-12-03 20:07:59 +0000
committer Eric Biggers <ebiggers@google.com> 2024-12-04 21:22:24 +0000
commit94a9f7c85d082ca238094452b9af7683b0200d45 (patch)
tree31a238680559763db2df6ff24b97afea7407785e /tools/aapt2/ResourceTable.cpp
parent990f0bcb2ca2660d7fcd1678497707568e6ae362 (diff)
Re-land ArrayUtils: add secure zeroization support
Add methods for allocating non-movable byte and char arrays, and methods that make a best effort to securely zeroize byte and char arrays. These methods will be used in code that handles the user's lockscreen credential and the secrets derived or unlocked from it. These methods provide the needed low-level primitives, and when possible they will be accessed through helper classes such as LockscreenCredential. The original version of this change was reverted due to not taking Ravenwood (host-side unit testing) into account. That is now fixed. CleanDataCache() is also now optimized to flush each line at most once. Bug: 320392352 Test: atest FrameworksUtilTests:com.android.internal.util.ArrayUtilsTest Test: atest FrameworksUtilTestsRavenwood:com.android.internal.util.ArrayUtilsTest Change-Id: Ie7973d3617a4efa3aacb1ae93ee346d749db0379
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions