Skip to content

wolfBoot DICE attestation with wolfCOSE#831

Draft
aidangarske wants to merge 4 commits into
wolfSSL:masterfrom
aidangarske:spe-wolfcose-attestation
Draft

wolfBoot DICE attestation with wolfCOSE#831
aidangarske wants to merge 4 commits into
wolfSSL:masterfrom
aidangarske:spe-wolfcose-attestation

Conversation

@aidangarske

@aidangarske aidangarske commented Jul 23, 2026

Copy link
Copy Markdown
Member

Description

  • Replace wolfBoot's hand-rolled DICE CBOR + COSE_Sign1 encoder with wolfCOSE (wc_CBOR_Encode* for the EAT payload, wc_CoseSign1_Sign for the token)
  • Add wolfCOSE as a submodule at lib/wolfCOSE; wire it into both the Makefile and CMake WOLFCRYPT_TZ_PSA build paths
  • Size query computes the exact untagged length without signing (no crypto / no CDI advance while sizing)
  • Fix hal/stm32h5.c uds_from_uid reading a non-existent BSEC address (0x46009014, secure-world bus fault) → read the real STM32H5 unique ID at 0x08FFF800 (RM0481); this unblocks DICE on the H5
  • Supports SW-DICE (SetEcc + local ES256 sign) and HW-DICE (SetExtSigner → hal_dice_sign_hash); untagged output (0x84) stays byte-compatible with the app_mcxn.c consumer
  • Verified on NUCLEO-H563ZI: real 340-byte untagged COSE_Sign1 EAT, PSA boot attestation: success
  • Follow-up: in-repo unit test for wolfBoot_dice_get_token[_size] (interim coverage: host test proves size-preflight == token length across payloads; HW token decodes + verifies) ???
  • Depends on wolfCOSE PR Add delegated signing seam wolfCOSE#59 (ext-sign) + WOLFCOSE_SIGN1_UNTAGGED (→ v1.1); lib/wolfCOSE pinned to aidangarske/wolfCOSE@spe-attestation for now

Copilot AI review requested due to automatic review settings July 23, 2026 04:13
@aidangarske aidangarske self-assigned this Jul 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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