Skip to content

key_store_file: accept signature type 0 in key store headers - #88

Merged
cwerling merged 1 commit into
PSPReverse:masterfrom
iwanicki92:fix-key-store-signature-type
Oct 2, 2026
Merged

cwerling merged 1 commit into
PSPReverse:masterfrom
iwanicki92:fix-key-store-signature-type

Conversation

@iwanicki92

@iwanicki92 iwanicki92 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Key stores in early ThinkPad T14/X13 Gen 1 AMD (Renoir) releases have no $PS1 magic and a signature type of 0 at 0x34, next to a 0x200 byte signature that verifies against the certifying key. The header check required 2 there and the resulting AssertionError aborted the whole ROM.

Name the two dwords at 0x30 and 0x34 as in HeaderFile (signed flag and signature type) and accept signature type 0 or 2. The signature size is still derived from the header sizes, so it stays 0x200 for these key stores.

Key stores in early ThinkPad T14/X13 Gen 1 AMD (Renoir) releases have
no $PS1 magic and a signature type of 0 at 0x34, next to a 0x200 byte
signature that verifies against the certifying key. The header check
required 2 there and the resulting AssertionError aborted the whole
ROM.

Name the two dwords at 0x30 and 0x34 as in HeaderFile (signed flag
and signature type) and accept signature type 0 or 2. The signature
size is still derived from the header sizes, so it stays 0x200 for
these key stores.

Signed-off-by: iwanicki92 <[email protected]>
@cwerling

cwerling commented Oct 2, 2026

Copy link
Copy Markdown
Member

Reopening to retrigger CI with the updated workflow (actions/checkout pwn-request fix).

@cwerling cwerling closed this Oct 2, 2026
@cwerling cwerling reopened this Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

Metrics

psptool command line interface metrics

Metric Value
Files Processed 68
Stdout Lines 14,965
Stderr Lines 164
Total Lines 15,129
Error Ratio 1.08%

PSPTool python library metrics

Status Count Percentage
✓ Successful 68 100.0%
✗ Failed 0 0.0%
Total 68 100%

All files parsed successfully!

@cwerling
cwerling merged commit ddaa29b into PSPReverse:master Oct 2, 2026
12 of 24 checks passed
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