SDitH tweakable salts #
SDitH v3 Algorithm 5 copies a lambda-bit salt, replaces its low 24 bits with the
little-endian encoding of a tweak, and reserves high bits for domain separation. The hash-based
grinding variant stores a tag in the highest bit. The cipher-based grinding variant clears the
highest bit and stores its tag in the next-highest bit.
This module formalizes only that deterministic TweakSalt subroutine. It does not implement
the counter-mode PRG, seed expansion, the SDitH protocol, or a signature security theorem. It is a
function-level specification, not a native machine implementation: later consumers must certify
the cost of producing the lambda-bit result and carry that time, output-size, and program-size
cost through their reductions. It proves neither asymptotic scheme-family security nor finite
instantiated candidate/parameter-set advantage bounds.
Main definitions #
Cslib.Crypto.SDitH.GrindingVariant: the hash- and cipher-based grinding branches.Cslib.Crypto.SDitH.tweakSalt: Algorithm 5's salt transformation.
Main results #
Cslib.Crypto.SDitH.tweakSalt_low: the low 24 bits are the tweak in little-endian order.Cslib.Crypto.SDitH.tweakSalt_hash_high: the hash-based high tag is exact.Cslib.Crypto.SDitH.tweakSalt_cipher_high: the cipher-based highest bit is cleared.Cslib.Crypto.SDitH.tweakSalt_cipher_nextHigh: the cipher-based tag is in the next-highest bit.Cslib.Crypto.SDitH.tweakSalt_injective: for a fixed salt and variant, the tweak and tag are recoverable from the result.
References #
- [The Syndrome Decoding in the Head Signature Scheme, v3.0, Algorithm 5, pp. 16--17] [AMBB+26]
The two grinding branches distinguished by SDitH v3 Algorithm 5.
- hashBased : GrindingVariant
- cipherBased : GrindingVariant
SDitH v3 Algorithm 5, TweakSalt.
The source assignments are interpreted in their listed order: a high domain-separation tag
overrides a low tweak bit if the coordinates overlap. The standard parameter sets have
securityBits >= 128; the useful exactness and injectivity results below assume only
26 <= securityBits, which keeps the low 24 tweak coordinates disjoint from both high tags.
The low 24 bits of a sufficiently wide tweaked salt are the source's little-endian tweak.
Away from the low tweak and highest tag coordinates, the hash-based branch preserves the salt.
Away from the low tweak and two highest tag coordinates, the cipher-based branch preserves the salt.
For a fixed salt and grinding branch, the tweak and domain-separation tag are recoverable from the transformed salt.