Skip to content

Why ML-KEM Decaps can be faster than Encaps? #400

@Joao-Pedro-Cabral

Description

@Joao-Pedro-Cabral

Hello,

I’m currently working with PQC, and I noticed that some PQM4 benchmarks show similar performance for ML-KEM decapsulation and encapsulation. In some cases, decapsulation is even faster than encapsulation.

But how is that possible? Since, one step of the decapsulation is performing the encapsulation process.

I tried to check if in the decapsulation the matrix A is cached from the encapsulation, but based on what I’ve understood from the source code, it seems to be generated on the fly.

Best Regards,
João Pedro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions