Shared SLH-DSA parameters #
This module records the three security-element byte lengths used by every parameter set in FIPS 205, Table 2. It is shared by the concrete hash calls and the WOTS+, XMSS, FORS, hypertree, and top-level layers built on them.
The finite type describes only the standardized concrete byte lengths. It is deliberately distinct from any later asymptotic security family indexed by a growing parameter.
Main definitions #
Cslib.Crypto.SLHDSA.SecurityBytes: the three standard values ofn.Cslib.Crypto.SLHDSA.SecurityBytes.count: the byte length selected by a value.Cslib.Crypto.SLHDSA.ParameterShape: the small-signature and fast-signing shapes.Cslib.Crypto.SLHDSA.ParameterShape.digestBytes: the six standard values ofm.
Main results #
Cslib.Crypto.SLHDSA.SecurityBytes.count_pos: every standardized length is positive.Cslib.Crypto.SLHDSA.SecurityBytes.count_le_32: every standardized length is at most 32.
References #
The three byte lengths n used by the FIPS 205 parameter sets.
- bytes16 : SecurityBytes
- bytes24 : SecurityBytes
- bytes32 : SecurityBytes
Instances For
The security-element and message length n, in bytes.
Every standardized value of n is positive.
Every standardized value of n is at most 32 bytes.
The two parameter shapes paired with every standardized security-byte length.
- small : ParameterShape
- fast : ParameterShape
Instances For
The total hypertree height h from FIPS 205, Table 2.
The number d of hypertree layers from FIPS 205, Table 2.
The height h' of one XMSS tree from FIPS 205, Table 2.
The FORS tree height a from FIPS 205, Table 2.
The number k of FORS trees from FIPS 205, Table 2.
The Section 9 message-digest length m, in bytes.
Table 2's h' values partition the total hypertree height into d equal layers.
Every standardized XMSS tree has at most 2^32 leaves, so a leaf index fits in one 32-bit
address word.