Skip to content

x-wing: Reject non-contributory behaviour in X25519 component - #113

Open
str4d wants to merge 1 commit into
rozbb:mainfrom
str4d:x-wing-reject-non-contributory-behaviour
Open

x-wing: Reject non-contributory behaviour in X25519 component#113
str4d wants to merge 1 commit into
rozbb:mainfrom
str4d:x-wing-reject-non-contributory-behaviour

Conversation

@str4d

@str4d str4d commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

RFC 9180 explicitly rejects it in DHKEM for X25519, so it is very likely that X-Wing as applied to HPKE will also require rejecting it. If the CFRG concrete-hybrid-kems document instead ends up requiring accepting it, then this crate would instead need to support it being configurable (as there are downstream users like age that require rejecting already).

Depends on RustCrypto/KEMs#369.

Comment thread src/kem/xwing.rs

let sk = PrivateKey(arr.into());
let sk = PrivateKey(
x_wing::DecapsulationKey::from(arr).reject_x25519_non_contributory_behaviour(),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can make this configurable like I did in RustCrypto/KEMs#369 if you prefer for the next release.

@rozbb

rozbb commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Thank you! Ugh this will require a version bump oh well. I’d like to merge rn but I’d rather wait til it lands in upstream x_wing. Left a comment in RustCrypto/KEMs#369

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