Skip to content

[opentitantool,rules,signing] Enhance ownership verification and add signature test rule#29757

Open
anthonychen1251 wants to merge 2 commits intolowRISC:earlgrey_1.0.0from
anthonychen1251:support-spx-ownership-verify
Open

[opentitantool,rules,signing] Enhance ownership verification and add signature test rule#29757
anthonychen1251 wants to merge 2 commits intolowRISC:earlgrey_1.0.0from
anthonychen1251:support-spx-ownership-verify

Conversation

@anthonychen1251
Copy link
Copy Markdown
Member

This introduces a new Bazel test rule for ownership signature verification and enhances opentitantool to support SPX and Hybrid signature verification for owner block.

  • Enhance opentitantool verification: The ownership verify command is updated to support SPX and Hybrid algorithms. Previously, only EcdsaP256 with embedded signatures was supported.
  • Introduce ownership_signature_test rule: A new Bazel rule and corresponding bash template that orchestrates the verification of ownership blocks against ECDSA and SPX public keys.

The ownership verify command previously only supported the `EcdsaP256`
algorithm with embedded signatures. This commit enhances the
verification process to support SPX and Hybrid algorithms.

Since SPX algorithms utilize detached signatures, new CLI arguments
(`--ecdsa-sig`, `--spx-sig`) were added to the `OwnershipVerifyCommand`
to allow users to provide them manually.

Signed-off-by: Anthony Chen <antchen@google.com>
@anthonychen1251 anthonychen1251 requested review from a team and cfrantz as code owners April 13, 2026 09:49
This introduces a new Bazel rule, `ownership_signature_test`, designed
to verifies ownership blocks against both embedded keys and explicitly
provided ECDSA and SPX public keys and detached signatures.

To support this rule, a new bash template,
`ownership_signature_test.template.sh`, was added to orchestrate the
verification commands. Additionally, this commit adds generation
rules in `sw/device/silicon_creator/lib/ownership/testdata/BUILD` to
create test ownership blocks (e.g., hybrid_owner.bin) and their
corresponding signatures using opentitantool.

Signed-off-by: Anthony Chen <antchen@google.com>
@anthonychen1251 anthonychen1251 force-pushed the support-spx-ownership-verify branch from bc2e3df to ea5be49 Compare April 13, 2026 10:24
@anthonychen1251
Copy link
Copy Markdown
Member Author

The failed test //sw/device/silicon_creator/rom_ext/e2e/rescue/std_utils:usbdfu_protocol_fpga_hyper310_rom_ext FAILED should be unrelated to this PR

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