Skip to content

use DHUK to wrap/unwrap seed value used for token#159

Merged
SparkiDev merged 4 commits intowolfSSL:masterfrom
JacobBarthelmeh:wrap_seed
Feb 13, 2026
Merged

use DHUK to wrap/unwrap seed value used for token#159
SparkiDev merged 4 commits intowolfSSL:masterfrom
JacobBarthelmeh:wrap_seed

Conversation

@JacobBarthelmeh
Copy link
Contributor

ZD21110

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds DHUK-based wrapping/unwrapping for the token seed when persisting it to storage (STM32U5), so the seed used for deriving the token key is not stored in plaintext.

Changes:

  • Introduced DHUK AES-CBC wrapping format for the stored token seed (length + IV + ciphertext).
  • Routed token load/store seed read/write through new DHUK-aware helpers when WOLFSSL_STM32U5_DHUK is enabled.
  • Minor clarifying comment in user login path about re-deriving the token key from PIN + seed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SparkiDev SparkiDev self-assigned this Feb 13, 2026
@SparkiDev SparkiDev merged commit ff8ebc8 into wolfSSL:master Feb 13, 2026
69 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.

4 participants