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

apk,signature: add support to verify RSA256 signed Index #224

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xnox
Copy link
Contributor

@xnox xnox commented Mar 15, 2024

This adds support to correctly parse signature stream that contains multiple types of signatures. This also refactors signing to allow trivially changing signature type, and to have multiple if so desired.

See code comments for lots of caveats.

Once all tools upgrade to this version of the module, signing can be changed from RSA to RSA256.

apk-tools supports RSA256 since v2.7.0 (2017).
abuild-sign support proposed in https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/290/diffs

This adds support to correctly parse signature stream that contains
multiple types of signatures. This also refactors signing to allow
trivially changing signature type, and to have multiple if so desired.

See code comments for lots of caveats.

Once all tools upgrade to this version of the module, signing can be
changed from RSA to RSA256.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@chainguard.dev>
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.

None yet

1 participant