-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid wearing out flash storage (if possible)
This change is an attempt to avoid unnecessary writes to flash memory during the normal course of using the applet— by preferring `TYPE_AES_TRANSIENT_DESELECT` and `TYPE_AES_TRANSIENT_RESET` over the plain `TYPE_AES`. If neither of the two "transient" types are supported then we will fall back to using `TYPE_AES`. We are also now only initializing the `KeyAgreement` instance once, which should also avoid writing to flash. Both of these changes should improve the longevity of the key card when run on supported hardware.
- Loading branch information
1 parent
14970ef
commit f70ec53
Showing
1 changed file
with
27 additions
and
3 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