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

Validate argon2 params on read #246

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Validate argon2 params on read #246

merged 4 commits into from
Nov 11, 2024

Conversation

lubux
Copy link
Contributor

@lubux lubux commented Nov 11, 2024

Argon2 s2k parameters were previously not validated on the OpenPGP side before invoking Argon2, which could lead to potential panics during runtime. This PR introduces a validation step for these parameters before calling Argon2, ensuring that invalid inputs are caught early and an appropriate error is returned instead of risking a panic.

@lubux lubux force-pushed the feat/s2k-validate-argon2-params branch from 98027f2 to d1adff9 Compare November 11, 2024 11:11
openpgp/s2k/s2k.go Outdated Show resolved Hide resolved
@lubux lubux force-pushed the feat/s2k-validate-argon2-params branch from ff472ee to cec76d0 Compare November 11, 2024 11:44
@lubux lubux merged commit d7733dc into main Nov 11, 2024
8 checks passed
@lubux lubux deleted the feat/s2k-validate-argon2-params branch November 11, 2024 12:06
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