Uh oh!
There was an error while loading. Please reload this page.
Issue 1100 decrypt atts with kotlin - #1225
Conversation
tomholub
commented
May 12, 2021
@IvanPizhenko do you have ability to actually build and run the app to try things? |
DenBond7
commented
May 12, 2021
@tomholub It's a draft.(not completed yet) I've added the base realization and now I'm on the adding tests stage. |
DenBond7
commented
May 14, 2021
it's ready for a review |
IvanPizhenko
left a comment
There was a problem hiding this comment.
Some minor changes and questions.
| } | ||
| enum class DecryptionErrorType { | ||
| KEY_MISMATCH, |
There was a problem hiding this comment.
I think we must already have such enum in the PgpMsg. Can it be used here?
There was a problem hiding this comment.
Currently, we have the following:
PgpArmor - is responsible for armor source
PgpDecrypt - is responsible for decrypting things
PgpEncrypt - is responsible for encrypting things
PgpKey - is responsible for handling keys
PgpMsg - is responsible for processing PGP messages
PgpPwd - is responsible for passphrases
In my opinion, it's more transparent to store the decryption error types in PgpDecrypt. Because you work on #1057, #1223 I've decided don't remove that code to prevent conflicts. We can clean code in a separate issue.
There was a problem hiding this comment.
It's not obvious decision, I suggest to move it now. I am ok with the fact it may require then to resolve some conflicts.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tomholub
commented
May 18, 2021
We could do a release after this lands |
IvanPizhenko
left a comment
There was a problem hiding this comment.
Please move DecryptionErrorType now
| } | ||
| enum class DecryptionErrorType { | ||
| KEY_MISMATCH, |
There was a problem hiding this comment.
It's not obvious decision, I suggest to move it now. I am ok with the fact it may require then to resolve some conflicts.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| e.message?.contains("exception decrypting session info") == true | ||
| || e.message?.contains("encoded length out of range") == true | ||
| || e.message?.contains("Exception recovering session info") == true | ||
| || e.message?.contains("No suitable decryption key") == true -> { | ||
| DecryptionException(DecryptionErrorType.KEY_MISMATCH, e) | ||
| } |
There was a problem hiding this comment.
Is there issue for this too?
There was a problem hiding this comment.
Not sure. I think we can improve that in another PR too. I'll create an issue for that.
Uh oh!
There was an error while loading. Please reload this page.
This PR added an ability to decrypt files of any size using streams
close#1100 // if this PR closes an issue
Tests(delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):