Skip to content

ml-kem: make encapsulation_key() public #39

Closed
@commial

Description

@commial

Hello,

For easier integration with others crates and simplify some ml-kem use cases, it would be nice to have a way to obtain the encapsulation key from the decapsulation one.
It seems that this is already possible and done inside the crate, but the related function is not published publicly:

pub(crate) fn encapsulation_key(&self) -> &EncapsulationKey<P> {

Would it be possible to make it widely available, or am I missing an already existing method to obtain the encapsulating key from the decapsulation key?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions