This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
best effort clearing of unlock-related memory
Java doesn't provide any decent way to deal with this, since data could have been copied all over the stack/heap and there's no way to guarantee that zeroing happens. However, we do control the implementation of the Java runtime so we can figure out what it does in practice and we can make changes to the implementation to help with this. TODO: * Destroyable needs to be implemented for each SecretKeySpec implementation * much more needs to be zeroed * Android Runtime heap zeroing
- Loading branch information
1 parent
3e773e4
commit 770ff63
Showing
2 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters