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

Skip to content

Add DHKEM(P-256, HKDF-SHA256) support to HPKE implementation#14398

Open
alex wants to merge 1 commit intomainfrom
claude/add-dhkem-p256-support-7qfxT
Open

Add DHKEM(P-256, HKDF-SHA256) support to HPKE implementation#14398
alex wants to merge 1 commit intomainfrom
claude/add-dhkem-p256-support-7qfxT

Conversation

@alex
Copy link
Member

@alex alex commented Mar 1, 2026

Add P256 KEM variant alongside the existing X25519, following the same abstraction patterns used for KDF and AEAD. KEM-specific operations (key generation, public key serialization/deserialization, DH exchange) are methods on the KEM enum, keeping encap/decap unified with no duplication.

Includes key type validation against Python ABCs (TypeError on mismatch), RFC 9180 test vector validation for kem_id=0x0010, and comprehensive wrong-key/wrong-type/wrong-curve tests.

https://claude.ai/code/session_01FJG426sLhnaeMytWntj9aJ

Add P256 KEM variant alongside the existing X25519, following the same
abstraction patterns used for KDF and AEAD. KEM-specific operations
(key generation, public key serialization/deserialization, DH exchange)
are methods on the KEM enum, keeping encap/decap unified with no
duplication.

Includes key type validation against Python ABCs (TypeError on
mismatch), RFC 9180 test vector validation for kem_id=0x0010, and
comprehensive wrong-key/wrong-type/wrong-curve tests.

https://claude.ai/code/session_01FJG426sLhnaeMytWntj9aJ
@alex alex mentioned this pull request Mar 1, 2026
12 tasks
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.

2 participants