Skip to content

Support OpenPGP v6 signature pre-salting#3848

Merged
dmnks merged 2 commits intorpm-software-management:masterfrom
pmatilai:v6salt
Jul 8, 2025
Merged

Support OpenPGP v6 signature pre-salting#3848
dmnks merged 2 commits intorpm-software-management:masterfrom
pmatilai:v6salt

Conversation

@pmatilai
Copy link
Copy Markdown
Member

@pmatilai pmatilai commented Jul 1, 2025

This has the necessary rpm-side bits to support v6 signature verification with the aid of rpm-sequoia + rpm-software-management/rpm-sequoia#92

Draft for now as there's no rpm-sequoia release that we can use in CI.

@mlschroe
Copy link
Copy Markdown
Collaborator

mlschroe commented Jul 1, 2025

I also need to support this in the "legacy" pgp code.

@pmatilai
Copy link
Copy Markdown
Member Author

pmatilai commented Jul 3, 2025

The bundle-id update has a proper PR of its own now as that can be merged without having to wait for a new rpm-sequoia: #3855

@pmatilai
Copy link
Copy Markdown
Member Author

pmatilai commented Jul 3, 2025

(rebased on top of #3855)

@pmatilai
Copy link
Copy Markdown
Member Author

pmatilai commented Jul 4, 2025

Updated to require rpm-sequoia >= 1.9.0 now that we know the version (rpm-software-management/rpm-sequoia#97)

Of course this wont pass until that version is available to us in the CI, so can't undraft yet.

@pmatilai
Copy link
Copy Markdown
Member Author

pmatilai commented Jul 4, 2025

The tests in #3844 cannot pass without this pre-salt commit, and without #3844 this doesn't have the necessary tests, so technically the commits should be merged. At the very least, they need to go together in the same PR.

@Jakuje
Copy link
Copy Markdown
Contributor

Jakuje commented Jul 4, 2025

New rpm-sequoia is on the way to Fedora: https://src.fedoraproject.org/rpms/rust-rpm-sequoia/pull-request/4

pmatilai and others added 2 commits July 8, 2025 16:38
OpenPGP v6 signature salt is a random per-signature thing that we need
to feed into the digest before the actual data. For that we need
rpm-sequoia support, the first version to have it is 1.9.0.

The tests for this are already written, just need to be adjusted a bit
and uncommented, so do that. Kudos to Jakub for covering this part via
PR rpm-software-management#3844 (squashed into this commit)!

Co-authored-by: Jakub Jelen <jjelen@redhat.com>

Fixes: rpm-software-management#3846
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
@dmnks
Copy link
Copy Markdown
Contributor

dmnks commented Jul 8, 2025

I've merged the related tests from #3844 into the original commit here. The sha3 test is not directly related so I've kept that one as a separate commit.

@dmnks dmnks marked this pull request as ready for review July 8, 2025 15:08
@dmnks dmnks requested a review from a team as a code owner July 8, 2025 15:08
@dmnks dmnks requested review from dmnks and removed request for a team July 8, 2025 15:08
@dmnks dmnks merged commit 8c7368f into rpm-software-management:master Jul 8, 2025
1 check passed
@Jakuje
Copy link
Copy Markdown
Contributor

Jakuje commented Jul 8, 2025

Thanks!

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.

4 participants