-
Notifications
You must be signed in to change notification settings - Fork 123
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
crypto.verifySignature is broken for signatures with expiration #231
Comments
Keep 2.5.2 until ProtonMail/gopenpgp#231 is fixed. Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
Hey, thanks for opening the issue. |
|
IIUC there are two approaches to solves this, without changing the external API.
Or change I can prepare a PR for any of those fixes if you wish. |
Hey, It's indeed tricky to fix while keeping the API. I think, as a short term fix, we should go with a variant of your second approach. For a complete fix, I think we should instead rethink how we do the verification, and manually check the dates for expiration, rather than reattempting verification with a different time. If you want to open a PR for either the partial fix, or look into the complete fix, it would be greatly appreciated. |
This is partial fix for ProtonMail#231 Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
Opened an PR for partial fix. |
This is partial fix for ProtonMail#231 Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
Thanks a lot for your submission @DmitriyMV |
@DmitriyMV is there something else which needs to fixed here? as it seems that the verification is still broken? |
@smira It's a partial fix in a sense that it only supports messages which have |
verifySignature
is broken if it tries to retry with the actual verification time. It doesn't resetorigText
reader, so it has nothing to read on second attempt.Relevant parts.
The text was updated successfully, but these errors were encountered: