Skip to content

Conversation

@tarcieri
Copy link
Member

This is intended to subsume the uses of the EncodedSizeUser trait, providing a way for users who insist on using the expanded key format to be able to initialize DecapsulationKeys.

To deter its use, it's marked as deprecated. Many implementations have opted not to support it at all, and in the future we can potentially consider removing it (which would allow to_seed to be infallible).

After this, it should be possible to deprecate EncodedSizeUser as well, and remove it in a future release.

@tarcieri tarcieri requested a review from bifurcation October 31, 2025 18:39
This is intended to subsume the uses of the `EncodedSizeUser` trait,
providing a way for users who insist on using the expanded key format
to be able to initialize `DecapsulationKey`s.

To deter its use, it's marked as deprecated. Many implementations have
opted not to support it at all, and in the future we can potentially
consider removing it (which would allow `to_seed` to be infallible).

After this, it should be possible to deprecate `EncodedSizeUser` as
well, and remove it in a future release.
@tarcieri tarcieri force-pushed the ml-kem/decapsulation-key-from-expanded branch from 51e70a4 to c6f9150 Compare November 2, 2025 20:08
@tarcieri tarcieri merged commit 038def3 into master Nov 3, 2025
23 checks passed
@tarcieri tarcieri deleted the ml-kem/decapsulation-key-from-expanded branch November 3, 2025 01:46
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