Skip to content

[traits] Kem traits errors should be associated types #1535

Description

@robinhundt

ML-KEM encapsulation is infallible, but the Kem trait always returns an EncapsError (the same probably also holds for other methods/algorithms).

If the errors were associated types, the ML-KEM implementation could specify that they're infallible and the error case wouldn't need to be handled by callers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions