Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 08d389fc authored by Ellen Arteca's avatar Ellen Arteca
Browse files

Add a finalizer to LockscreenCredential to wipe the LSKF on GC

Adds a finalizer to the `LockscreenCredential` class, which calls
the `zeroize` method to zeroize the LSKF `byte[]`. This ensures that
`LockscreenCredential` objects that were not closed still have their
data wiped when they are garbage collected.

This is part of an effort to remove instances of the LSKF available
in a RAMdump.

Bug: 320392352
Test: atest com.android.server.locksettings
Change-Id: Id7f1f102cdaa182659e2632bdaf81bd2c46d0f86
parent 4857d701
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment