Skip to content

ate: expand kWrappedSeedMaxSize to 2048 bytes for Hybrid HPKE RMA seeds - #331

Merged
willyzha merged 1 commit into
lowRISC:mainfrom
willyzha:pqc-task3-wrapped-seed-size
Sep 18, 2026
Merged

willyzha merged 1 commit into
lowRISC:mainfrom
willyzha:pqc-task3-wrapped-seed-size

Conversation

@willyzha

Copy link
Copy Markdown
Collaborator

Expand kWrappedSeedMaxSize in ate_api.h from 384 to 2048 bytes to accommodate two-layer Hybrid HPKE wrapped RMA token seeds (ML-KEM-768 + ECDH P-256 + AES-GCM).

Ref: #310 (TASK-3)

@willyzha
willyzha requested a review from clundin25 September 18, 2026 17:29
@willyzha
willyzha force-pushed the pqc-task3-wrapped-seed-size branch from 119df23 to 8c46721 Compare September 18, 2026 17:45
Comment thread src/ate/ate_api.h Outdated
Define explicit component size enum constants in ate_api.h for the
two-layer Hybrid HPKE wrapped RMA token seed:
- kRsa3072CiphertextSize = 384 (Layer 1 RSA-3072 wrapped seed)
- kMlkem768CiphertextSize = 1088 (FIPS 203 ML-KEM-768 ciphertext)
- kEcdhP256PubKeySize = 65 (uncompressed P-256 ephemeral public key)
- kAesGcmTagSize = 16 (AES-256-GCM authentication tag)

Compute kWrappedSeedMaxSize as their exact sum (1553 bytes).

Ref: lowRISC#310 (TASK-3)
@willyzha
willyzha force-pushed the pqc-task3-wrapped-seed-size branch from 8c46721 to 2b532db Compare September 18, 2026 21:08
@willyzha
willyzha merged commit 721a5f6 into lowRISC:main Sep 18, 2026
3 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.

2 participants