Skip to content

wolfBoot DICE attestation with wolfCOSE - #831

Open
aidangarske wants to merge 13 commits into
wolfSSL:masterfrom
aidangarske:spe-wolfcose-attestation
Open

wolfBoot DICE attestation with wolfCOSE#831
aidangarske wants to merge 13 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-written DICE CBOR and COSE_Sign1 encoder with wolfCOSE.
  • Use wc_CBOR_Encode* for the EAT payload and wc_CoseSign1_Sign_ex with WOLFCOSE_SIGN1_UNTAGGED for each DICE token.
  • Add wolfCOSE as lib/wolfCOSE and wire it into Makefile and CMake WOLFCRYPT_TZ_PSA builds.
  • Keep token sizing free of signing operations so sizing does not advance the CDI.
  • Fix the STM32H5 UDS fallback to read the device UID from 0x08FFF800.
  • Support software DICE with local ES256 signing and hardware DICE through the external signer callback.

Dependencies

Validation

  • wolfCOSE normal suite, external signing test, C99 check, and forced external signer failure test pass on the combined dependency.
  • M33MU CI image ghcr.io/wolfssl/wolfboot-ci-m33mu:v1.15 passes with a 340-byte token, untagged 0x84 prefix, and PSA boot attestation: success.
  • NUCLEO-H563ZI hardware passes with the same 340-byte untagged token and PSA boot attestation: success.

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.

@aidangarske
aidangarske marked this pull request as ready for review July 29, 2026 01:49
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.

3 participants