params

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnknownType indicates a parameter set is not supported.
	ErrUnknownType = errors.New("params: unknown ML-DSA parameter set")
)

Functions

This section is empty.

Types

type Set

type Set struct {
	Type      Type
	Name      string
	K         int // Rows in A / t
	L         int // Columns in A / s
	N         int // Polynomial degree
	Q         int // Modulus
	D         int // t1/t0 bit-drop parameter
	Eta       int
	Beta      int
	Gamma1    int
	Gamma2    int
	Tau       int
	Omega     int
	PKBytes   int
	SKBytes   int
	SigBytes  int
	SeedBytes int
	CRHBytes  int
}

Set captures the parameters for a given ML-DSA security level.

func Lookup

func Lookup(t Type) (*Set, error)

Lookup returns a copy of the parameter set identified by t.

type Type

type Type string

Type identifies an ML-DSA parameter set.

const (
	// Type44 corresponds to ML-DSA-44 (Security Category 2).
	Type44 Type = "ML-DSA-44"
	// Type65 corresponds to ML-DSA-65 (Security Category 3).
	Type65 Type = "ML-DSA-65"
	// Type87 corresponds to ML-DSA-87 (Security Category 5).
	Type87 Type = "ML-DSA-87"
)

func Types

func Types() []Type

Types returns all supported ML-DSA parameter types.

Jump to

Keyboard shortcuts

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