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

Ensure that DecryptSessionKey returns an error for no key packet #245

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

lubux
Copy link
Contributor

@lubux lubux commented Jun 20, 2023

DecryptSessionKey returns no error if the input packet stream only contains a SymmetricallyEncrypted packet although no session key is found. The issue is that errors.Wrap returns nil if err is nil.

This pull request ensures that an error is returned if no session key is found.

@lubux lubux requested a review from twiss June 20, 2023 12:39
@twiss twiss merged commit ca02a21 into ProtonMail:main Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants