-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
fix: optimize getCipherStorageForCurrentAPILevel method #457
base: master
Are you sure you want to change the base?
Conversation
hello and thank you for the PR! Can you please take a look at the failing test and make it pass? Thank you! 💯 |
Why is this RSA test required? |
Hello, I'm on mobile so I don't see the details of the test. Maybe it's not neccessary any more, maybe the test should be modified - my point is, we cannot merge a PR if it makes tests fail. We need to have a clear understanding of whether your change introduced a bug or whether the failing test should be modified. If you have time to claeify that, perfect. Otherwise I'll try to get to it at some point. |
Not totally, this PR (#505) of course optimizes the RSA check for the initial test using another key dimension, also properly uses the short condition evaluation here But it is useless evaluate isBiometry in this point (row 753) This PR can optimize the reorder of this lines for not compute del capability level for variant which isBiometrySupported is true and isBiometry is false. Anyway, with the #505 PR, now the tests should be fine. |
Do you have any news about the approval? |
I reordered the execution of the instructions to optimize the getCipherStorageForCurrentAPILevel method.
In the case of isBiometry = false it is useless to execute the getCapabilityLevel method which can be calculated in case the RSA private key is missing.
I realized this because not using the warm up, the first de-encryption was still very slow due to this particular.
Furthermore, this re-order does not cause problems for the warm up because it is valued there with isBiometry = true.