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

boot: Avoid setting signature algorithm when image is indirectly signed #191

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

chenxiaolong
Copy link
Owner

Previously, the AVB algorithm_type field was unconditionally being set to a value that is compatible with the AVB private key. However, for indirectly-signed boot images, the value should be set to None. Pixel bootloaders accept the incorrect value, but other devices' bootloaders might not.

Issue: #186

@chenxiaolong chenxiaolong self-assigned this Oct 13, 2023
@chenxiaolong chenxiaolong changed the title boot: Avoid setting signature algorithm when image is not signed boot: Avoid setting signature algorithm when image is indirectly signed Oct 13, 2023
Previously, the AVB `algorithm_type` field was unconditionally being set
to a value that is compatible with the AVB private key. However, for
indirectly-signed boot images, the value should be set to `None`. Pixel
bootloaders accept the incorrect value, but other devices' bootloaders
might not.

Issue: #186

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong merged commit d402fdf into master Oct 14, 2023
@chenxiaolong chenxiaolong deleted the sign branch October 14, 2023 21:04
chenxiaolong added a commit that referenced this pull request Oct 14, 2023
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
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.

1 participant