Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider caching cryptographic primitives #5

Open
mottljan opened this issue Nov 23, 2024 · 0 comments
Open

Consider caching cryptographic primitives #5

mottljan opened this issue Nov 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mottljan
Copy link
Contributor

Getting/creating keysets and initializing cryptographic primitives (e.g. StraemingAead) using those keysets should be ideally done just once per process as stated in the docs of AndroidKeysetManager class. Currently we do this per creation of the instance of any type using Tink under the hood (EncryptedFile, EncryptedSharedPreferences, both encrypted DataStores). This behavior stayed the same since Jetpack Security implementation, so it probably is not a big deal. However, it still might be a place for improvement to optimize this as described in Tink documentation, if possible.

@mottljan mottljan added the enhancement New feature or request label Nov 23, 2024
@mottljan mottljan self-assigned this Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant