Ready to SQI? Safety First! Towards a constant-time implementation of isogeny-based signature, SQIsign
Identifies a timing side-channel in SQIsign's Cornacchia sum-of-two-squares step (half-GCD leakage enables key recovery) and proposes two constant-time Cornacchia variants.
Schemes: SQIsign, Cornacchia's algorithm
Findings (quotes checked against the source text)
-
A timing leak in the half-GCD inside Cornacchia's algorithm during SQIsign signing would allow signing key recovery in polynomial time.
We show that if the inputs of Cornacchia’s algorithm leak, then one can retrieve the signing key in polynomial time.
-
Two timing-attack-resistant Cornacchia variants are proposed: a fixed-iteration constant-time half-GCD, and a two-dimensional lattice reduction version.
The first version uses a constant-time ‘half-GCD’ algorithm that runs a fixed number of times for a given upper bound based on the bit-size of the inputs.
-
Randomizing the starting basis with a unimodular matrix makes the lattice-reduction-based execution time independent of the input.
We show that randomizing the starting basis with an unimodular matrix would make the execution time independent of the input.
-
SQIsign is the only isogeny-based candidate in NIST's additional signature round and has the most compact keys and signatures, but lacked side-channel resistance.
It boasts the most compact key and signature sizes among all post-quantum signature schemes.
For builders
If SQIsign is considered for a chain, its signing path needs the constant-time Cornacchia variants before deployment, since leaked inputs to the half-GCD expose the key.
Limits
Abstract-only review (full text not read); no implementation or timing benchmarks are reported here, and the constant-time variants' cost is not quantified in this text.