Skip to content

Provide example to calculate mu for ML-DSA #15060

Description

@mschulz-at-hilscher

It would be nice to have some example code for calculating mu.

I wrote the attached one, which is inspired by https://github.com/nsmithuk/mldsa-mu-py/blob/main/src/mldsa_mu/mu.py.

I first generate a signature, then i generate mu manually and verify the signature using verify_mu. Then I also generate a hashmldsa signature and verify it using openssl (taken from wsl in my example).

hashmldsa.py

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