Skip to content

Add HPKE Hybrid KEM sizes#218

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
str4d:hpke-hybrid-kem-sizes
Apr 24, 2026
Merged

Add HPKE Hybrid KEM sizes#218
tarcieri merged 1 commit intoRustCrypto:masterfrom
str4d:hpke-hybrid-kem-sizes

Conversation

@str4d
Copy link
Copy Markdown
Contributor

@str4d str4d commented Apr 24, 2026

Implemented per https://filippo.io/hpke-pq, which itself derives from https://datatracker.ietf.org/doc/html/draft-ietf-hpke-pq-03. These sizes correspond to the encoded sizes of the encapsulating keys and ciphertexts, which are calculated as KEM.Nek + Group.Nelem and KEM.Nct + Group.Nelem respectively.

The X-Wing sizes were already present due to being rounder numbers.

Implemented per <https://filippo.io/hpke-pq>, which itself derives from
<https://datatracker.ietf.org/doc/html/draft-ietf-hpke-pq-03>. These
sizes correspond to the encoded sizes of the encapsulating keys and
ciphertexts, which are calculated as `KEM.Nek + Group.Nelem` and
`KEM.Nct + Group.Nelem` respectively.

The X-Wing sizes were already present due to being rounder numbers.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (15f74ea) to head (c8d0cd6).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #218   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          562       562           
=========================================
  Hits           562       562           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tarcieri tarcieri merged commit 343190c into RustCrypto:master Apr 24, 2026
17 checks passed
@tarcieri tarcieri mentioned this pull request Apr 24, 2026
tarcieri added a commit that referenced this pull request Apr 24, 2026
## Added
- HPKE Hybrid KEM sizes (#218)

## Removed
- `Clone` bounds on `Box`/`Vec` conversions (#209)
@str4d str4d deleted the hpke-hybrid-kem-sizes branch April 24, 2026 17:36
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