MLDSAParams class

Parameters for one ML-DSA parameter set.

Constructors

MLDSAParams({required int k, required int l, required int eta, required int tau, required int beta, required int gamma1, required int gamma2, required int omega, required int d, required int lambda, required int level})
const

Properties

beta → int
Bound β = τ · η.
final
d → int
Number of dropped low-order bits (d).
final
eta → int
Noise bound η for secret key coefficients.
final
gamma1 → int
Masking range γ₁.
final
gamma2 → int
Rounding parameter γ₂.
final
hashCode → int
The hash code for this object.
no setterinherited
k → int
Module rank for public key (k).
final
keygenSeedBytes → int
Seed size for key generation (ξ) = 32 bytes.
no setter
l → int
Module rank for secret key / signature (ℓ).
final
lambda → int
Challenge hash output length in bits (λ).
final
level → int
final
omega → int
Maximum number of 1's in the hint h.
final
polyEtaPackedBytes → int
Size of a single polynomial when packed with η-bits (for s1/s2).
no setter
polyT1PackedBytes → int
Size of a single polynomial when packed with 10 bits (for t1).
no setter
polyW1PackedBytes → int
Size of a single polynomial packed for w1.
no setter
polyZPackedBytes → int
Size of a single polynomial packed for z (γ₁ bits).
no setter
publicKeyBytes → int
Public key size: ρ (32) + t1 (k * 320)
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secretKeyBytes → int
Secret key size (expanded form used by FIPS): ρ (32) + K (32) + tr (64) + s1 (l * polyEtaPacked) + s2 (k * polyEtaPacked) + t0 (k * 416)
no setter
signatureBytes → int
Signature size: c̃ (lambda/4) + z (l * polyZPacked) + h (omega + k)
no setter
signRndBytes → int
Randomness size for signing (rnd) = 32 bytes.
no setter
tau → int
Number of ±1 coefficients in the challenge polynomial c.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromLevel(int level) → MLDSAParams
fromPublicKey(List<int> pkBytes) → MLDSAParams
fromSecretKey(List<int> skBytes) → MLDSAParams
isValidPublicKeyBytesLength(List<int> pkBytes) → bool

Constants

mldsa44Params → const MLDSAParams
ML-DSA-44 (Category 2)
mldsa65Params → const MLDSAParams
ML-DSA-65 (Category 3) – recommended default
mldsa87Params → const MLDSAParams
ML-DSA-87 (Category 5)
n → const int
Polynomial degree (always 256).
q → const int
Modulus q = 8380417.