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

[v2] Check signature details of binding signatures #218

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

twiss
Copy link
Member

@twiss twiss commented Jul 17, 2024

Check the hash algorithm, creation time, signature notations, and signature expiry (when relevant) of binding signatures when using keys.

To be able to check that all critical signature notations are known, and the hash algorithm used is valid, we add config parameters to all functions on the path to verifying key binding signatures in v2.

By default, we reject binding signatures using MD5 and RIPEMD-160, but this can be modified by setting the new config.RejectHashAlgorithms property. In the future, we should also reject binding signatures using SHA-1, but this would be a larger breaking change.

Check the hash algorithm, creation time, signature notations, and
signature expiry (when relevant) of binding signatures when using
keys.

To be able to check that all critical signature notations are known,
we add `config` parameters to all functions on the path to verifying
key binding signatures in v2.
@twiss twiss requested a review from lubux July 17, 2024 12:44
Copy link
Contributor

@lubux lubux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work 👍 Before merging we should check that there are no regressions in the interoperability test-suite. To fix the CI, we could just update the gopenpgp commit hash here in this branch.

openpgp/v2/keys.go Outdated Show resolved Hide resolved
openpgp/v2/read.go Show resolved Hide resolved
openpgp/v2/read.go Outdated Show resolved Hide resolved
openpgp/v2/read.go Show resolved Hide resolved
@twiss twiss merged commit ad60d74 into main Jul 18, 2024
7 of 8 checks passed
@twiss twiss deleted the check-binding-sig-details branch July 18, 2024 12:01
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