Skip to content

Accept ECB-wrapped ECC scalars in the RTL8735B HUK sign path - #12056

Open
dgarske wants to merge 1 commit into
wolfSSL:masterfrom
dgarske:rtl8735b_ecb_wrap
Open

dgarske wants to merge 1 commit into
wolfSSL:masterfrom
dgarske:rtl8735b_ecb_wrap

Conversation

@dgarske

@dgarske dgarske commented Nov 6, 2026

Copy link
Copy Markdown
Member

Description

The RTL8735B HUK ECDSA sign path (wc_Rtl8735b_EccKey via ecc_key->devCtx) only accepted an AES-GCM-wrapped scalar, so a blob wrapped with AES-ECB under the HUK, the layout STM32 DHUK uses for wc_ecc_import_wrapped_private(), could not be signed with. It now treats a key with iv, ivSz, tag and tagSz all NULL/0 as ECB-wrapped (block-padded, scalar in the first plainLen bytes), rejects a partial IV/tag set, and leaves GCM unchanged and recommended.

Testing

Tested on an RTL8735B EVB with both formats, with host self-test cases for the format checks.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

@dgarske dgarske self-assigned this Nov 6, 2026
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