ml-dsa

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: BSD-3-Clause

README

Module-Lattice Digital Signature Algorithm

This repository implements FIPS 204 in Go.

Build Status

Installation

go get https://github.com/nsmithuk/ml-dsa

Usage

import(
	"log"
    mldsa65 "github.com/nsmithuk/ml-dsa/mldsa65"
)

pub, priv, err := mldsa65.GenerateKeyPair(nil)
if err != nil {
    log.Fatal(err)
}

msg := []byte("Hello, world!")

sig, err := priv.Sign(nil, msg, nil)
if err != nil {
    log.Fatal(err)
}

ok := pub.Verify(msg, sig)

Directories

Path Synopsis
field
Package field implements arithmetic in the field Z_q, where q = 8380417.
Package field implements arithmetic in the field Z_q, where q = 8380417.
ring
Package ring implements arithmetic in the degree-256 cyclotomic polynomial ring R_q where q = 8380417.
Package ring implements arithmetic in the degree-256 cyclotomic polynomial ring R_q where q = 8380417.
util
Package util implements the generic underlying algorithms from [NIST FIPS 204].
Package util implements the generic underlying algorithms from [NIST FIPS 204].
Package mldsa44 implements the ML-DSA-44 parameter set of the ML-DSA algorithm.
Package mldsa44 implements the ML-DSA-44 parameter set of the ML-DSA algorithm.
Package mldsa65 implements the ML-DSA-65 parameter set of the ML-DSA algorithm.
Package mldsa65 implements the ML-DSA-65 parameter set of the ML-DSA algorithm.
Package mldsa87 implements the ML-DSA-87 parameter set of the ML-DSA algorithm.
Package mldsa87 implements the ML-DSA-87 parameter set of the ML-DSA algorithm.
Common options for ML-DSA signatures.
Common options for ML-DSA signatures.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL