Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add HKDF_SHA512 support to the HPKE implementation#14395

Merged
reaperhulk merged 1 commit intomainfrom
claude/add-hkdf-sha512-hpke-ihx6u
Mar 1, 2026
Merged

Add HKDF_SHA512 support to the HPKE implementation#14395
reaperhulk merged 1 commit intomainfrom
claude/add-hkdf-sha512-hpke-ihx6u

Conversation

@alex
Copy link
Member

@alex alex commented Mar 1, 2026

Extend the HPKE KDF enum with HKDF_SHA512 (ID 0x0003) alongside the existing HKDF_SHA256. The KDF type owns its id() and hash_algorithm() methods, and hkdf_expand takes the hash as an argument so both KEM (SHA256) and HPKE (suite KDF) callers go through the same code path. KEM operations (DHKEM(X25519, HKDF-SHA256)) continue to use SHA-256 per RFC 9180.

https://claude.ai/code/session_013bNoRc1A2vwBFC6NZkxCtS

@alex alex mentioned this pull request Mar 1, 2026
12 tasks
Extend the HPKE KDF enum with HKDF_SHA512 (ID 0x0003) alongside the
existing HKDF_SHA256. The KDF type owns its id() and hash_algorithm()
methods, and hkdf_expand takes the hash as an argument so both KEM
(SHA256) and HPKE (suite KDF) callers go through the same code path.
KEM operations (DHKEM(X25519, HKDF-SHA256)) continue to use SHA-256
per RFC 9180.

https://claude.ai/code/session_013bNoRc1A2vwBFC6NZkxCtS
@alex alex force-pushed the claude/add-hkdf-sha512-hpke-ihx6u branch from a66418d to 26c3470 Compare March 1, 2026 13:57
@reaperhulk reaperhulk enabled auto-merge (squash) March 1, 2026 14:02
@reaperhulk reaperhulk merged commit d41476b into main Mar 1, 2026
67 checks passed
@reaperhulk reaperhulk deleted the claude/add-hkdf-sha512-hpke-ihx6u branch March 1, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants